diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr b/src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr new file mode 100644 index 000000000..0a5a6b80e --- /dev/null +++ b/src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr @@ -0,0 +1,12 @@ +error[E0507]: cannot move out of index of `Vec<String>` + --> $DIR/issue-40402-1.rs:9:13 + | +LL | let e = f.v[0]; + | ^^^^^^ + | | + | move occurs because value has type `String`, which does not implement the `Copy` trait + | help: consider borrowing here: `&f.v[0]` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0507`. |