]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-move-out-of-static-item.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-move-out-of-static-item.stderr
1 error[E0507]: cannot move out of static item `BAR`
2   --> $DIR/borrowck-move-out-of-static-item.rs:15:10
3    |
4 LL |     test(BAR);
5    |          ^^^ move occurs because `BAR` has type `Foo`, which does not implement the `Copy` trait
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0507`.