]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17718-static-move.nll.stderr
Update output for borrowck=migrate compare mode.
[rust.git] / src / test / ui / issues / issue-17718-static-move.nll.stderr
1 error[E0507]: cannot move out of static item
2   --> $DIR/issue-17718-static-move.rs:16:14
3    |
4 LL |     let _a = FOO; //~ ERROR: cannot move out of static item
5    |              ^^^
6    |              |
7    |              cannot move out of static item
8    |              help: consider borrowing here: `&FOO`
9
10 error[E0507]: cannot move out of immutable static item `FOO`
11   --> $DIR/issue-17718-static-move.rs:16:14
12    |
13 LL |     let _a = FOO; //~ ERROR: cannot move out of static item
14    |              ^^^
15    |              |
16    |              cannot move out of immutable static item `FOO`
17    |              cannot move
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0507`.