]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-out-of-static-item.ast.nll.stderr
Regression test for issue #54477.
[rust.git] / src / test / ui / borrowck / borrowck-move-out-of-static-item.ast.nll.stderr
1 error[E0507]: cannot move out of static item
2   --> $DIR/borrowck-move-out-of-static-item.rs:28:10
3    |
4 LL |     test(BAR); //[ast]~ ERROR cannot move out of static item [E0507]
5    |          ^^^ cannot move out of static item
6
7 error[E0507]: cannot move out of immutable static item `BAR`
8   --> $DIR/borrowck-move-out-of-static-item.rs:28:10
9    |
10 LL |     test(BAR); //[ast]~ ERROR cannot move out of static item [E0507]
11    |          ^^^
12    |          |
13    |          cannot move out of immutable static item `BAR`
14    |          cannot move
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0507`.