]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0508-fail.mir.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / E0508-fail.mir.stderr
1 error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array
2   --> $DIR/E0508-fail.rs:8:18
3    |
4 LL |     let _value = array[0];  //[ast]~ ERROR [E0508]
5    |                  ^^^^^^^^
6    |                  |
7    |                  cannot move out of here
8    |                  help: consider borrowing here: `&array[0]`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0508`.