summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-move-out-of-static-item.stderr
blob: edf8c954f816b692ad3a8de4915c0991f0d95a8c (plain)
1
2
3
4
5
6
7
8
9
error[E0507]: cannot move out of static item `BAR`
  --> $DIR/borrowck-move-out-of-static-item.rs:15:10
   |
LL |     test(BAR);
   |          ^^^ move occurs because `BAR` has type `Foo`, which does not implement the `Copy` trait

error: aborting due to previous error

For more information about this error, try `rustc --explain E0507`.