]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/move-error-snippets.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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    |                 ^^ move occurs because `D` has type `A`, which does not implement the `Copy` trait
6    |
7   ::: $DIR/move-error-snippets.rs:21:1
8    |
9 LL | sss!();
10    | ------ in this macro invocation
11    |
12    = 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)
13 help: consider borrowing here
14    |
15 LL |         let a = &$c;
16    |                 +
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0507`.