]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-17718-static-move.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-17718-static-move.stderr
1 error[E0507]: cannot move out of static item `FOO`
2   --> $DIR/issue-17718-static-move.rs:6:14
3    |
4 LL |     let _a = FOO;
5    |              ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
6    |
7 help: consider borrowing here
8    |
9 LL |     let _a = &FOO;
10    |              +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0507`.