cargo-marvin
Inspired by ebrythil on Reddit.
> cargo install --git https://github.com/Nemo157/cargo-marvin
> cargo marvin build --example moved_value
Compiling cargo-marvin v0.1.0 (file:///Users/Nemo157/sources/cargo-marvin)
transgression[E0382]: use of moved value: `foo`. Again. There goes my hope you learned that by now. Seriously. It's not that hard...
--> examples/moved_value.rs:7:9
|
6 | bar(foo);
| --- value moved here
7 | bar(foo);
| --- value used here after move
|
= illumination: move occurs because `foo` has type `std::string::String`, which does not implement the `Copy` trait
transgression: aborting due to previous error. Maybe try a garbage-collected language?
error: Could not compile `cargo-marvin`.
To learn more, run the command again with --verbose.
error: Here I am, brain the size of a planet, and you want me to compile this crate full of errors.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.