rust/src/test/ui/borrowck/move-error-snippets.stderr
Matthew Jasper 365ff62fca Don't unwrap the result of span_to_snippet
It can return `Err` due to macros being expanded across crates or
files.
2019-08-24 18:25:34 +01:00

16 lines
445 B
Plaintext

error[E0507]: cannot move out of static item `D`
--> $DIR/move-error-snippets.rs:16:18
|
LL | | #[macro_use]
| |__________________^ move occurs because `D` has type `A`, which does not implement the `Copy` trait
...
LL | aaa!(D);
| __________________^
...
LL | sss!();
| ------- in this macro invocation
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.