]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-fn-in-const-a.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-fn-in-const-a.stderr
1 error[E0507]: cannot move out of `*x` which is behind a shared reference
2 --> $DIR/borrowck-fn-in-const-a.rs:6:16
3 |
4 LL | return *x
5 | ^^ move occurs because `*x` has type `String`, 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`.