]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
dc9dc135 1error[E0507]: cannot move out of `*x` which is behind a shared reference
48663c56 2 --> $DIR/borrowck-fn-in-const-a.rs:6:16
b7449926 3 |
532ac7d7 4LL | return *x
1b1a35ee 5 | ^^ move occurs because `*x` has type `String`, which does not implement the `Copy` trait
b7449926
XL
6
7error: aborting due to previous error
8
9For more information about this error, try `rustc --explain E0507`.