]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/move-error-snippets.stderr
Auto merge of #102283 - GuillaumeGomez:option-code-example-unwrap-or-default, r=thomcc
[rust.git] / src / test / ui / borrowck / move-error-snippets.stderr
1 error[E0507]: cannot move out of static item `D`
2   --> $DIR/move-error-snippets-ext.rs:5:17
3    |
4 LL |         let a = $c;
5    |                 ^^
6    |                 |
7    |                 move occurs because `D` has type `A`, which does not implement the `Copy` trait
8    |                 help: consider borrowing here: `&$c`
9    |
10   ::: $DIR/move-error-snippets.rs:21:1
11    |
12 LL | sss!();
13    | ------ in this macro invocation
14    |
15    = note: this error originates in the macro `aaa` which comes from the expansion of the macro `sss` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0507`.