mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
Add files I forgot to commit earlier
This commit is contained in:
parent
671d7e064f
commit
4c4e1ef2c5
12
src/test/ui/E0508-fail.ast.nll.stderr
Normal file
12
src/test/ui/E0508-fail.ast.nll.stderr
Normal file
@ -0,0 +1,12 @@
|
||||
error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array
|
||||
--> $DIR/E0508-fail.rs:18:18
|
||||
|
|
||||
LL | let _value = array[0]; //[ast]~ ERROR [E0508]
|
||||
| ^^^^^^^^
|
||||
| |
|
||||
| cannot move out of here
|
||||
| help: consider borrowing here: `&array[0]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0508`.
|
12
src/test/ui/E0508.nll.stderr
Normal file
12
src/test/ui/E0508.nll.stderr
Normal file
@ -0,0 +1,12 @@
|
||||
error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array
|
||||
--> $DIR/E0508.rs:15:18
|
||||
|
|
||||
LL | let _value = array[0]; //~ ERROR [E0508]
|
||||
| ^^^^^^^^
|
||||
| |
|
||||
| cannot move out of here
|
||||
| help: consider borrowing here: `&array[0]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0508`.
|
@ -0,0 +1,12 @@
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/borrowck-move-out-of-overloaded-deref.rs:14:14
|
||||
|
|
||||
LL | let _x = *Rc::new("hi".to_string());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| cannot move out of borrowed content
|
||||
| help: consider removing the `*`: `Rc::new("hi".to_string())`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0507`.
|
12
src/test/ui/error-codes/E0509.nll.stderr
Normal file
12
src/test/ui/error-codes/E0509.nll.stderr
Normal file
@ -0,0 +1,12 @@
|
||||
error[E0509]: cannot move out of type `DropStruct`, which implements the `Drop` trait
|
||||
--> $DIR/E0509.rs:26:23
|
||||
|
|
||||
LL | let fancy_field = drop_struct.fancy; //~ ERROR E0509
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| cannot move out of here
|
||||
| help: consider borrowing here: `&drop_struct.fancy`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0509`.
|
12
src/test/ui/issues/issue-17718-static-move.nll.stderr
Normal file
12
src/test/ui/issues/issue-17718-static-move.nll.stderr
Normal file
@ -0,0 +1,12 @@
|
||||
error[E0507]: cannot move out of static item
|
||||
--> $DIR/issue-17718-static-move.rs:16:14
|
||||
|
|
||||
LL | let _a = FOO; //~ ERROR: cannot move out of static item
|
||||
| ^^^
|
||||
| |
|
||||
| cannot move out of static item
|
||||
| help: consider borrowing here: `&FOO`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0507`.
|
39
src/test/ui/std-uncopyable-atomics.nll.stderr
Normal file
39
src/test/ui/std-uncopyable-atomics.nll.stderr
Normal file
@ -0,0 +1,39 @@
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/std-uncopyable-atomics.rs:19:13
|
||||
|
|
||||
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
|
||||
| ^^^
|
||||
| |
|
||||
| cannot move out of borrowed content
|
||||
| help: consider removing the `*`: `&x`
|
||||
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/std-uncopyable-atomics.rs:21:13
|
||||
|
|
||||
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
|
||||
| ^^^
|
||||
| |
|
||||
| cannot move out of borrowed content
|
||||
| help: consider removing the `*`: `&x`
|
||||
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/std-uncopyable-atomics.rs:23:13
|
||||
|
|
||||
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
|
||||
| ^^^
|
||||
| |
|
||||
| cannot move out of borrowed content
|
||||
| help: consider removing the `*`: `&x`
|
||||
|
||||
error[E0507]: cannot move out of borrowed content
|
||||
--> $DIR/std-uncopyable-atomics.rs:25:13
|
||||
|
|
||||
LL | let x = *&x; //~ ERROR: cannot move out of borrowed content
|
||||
| ^^^
|
||||
| |
|
||||
| cannot move out of borrowed content
|
||||
| help: consider removing the `*`: `&x`
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0507`.
|
Loading…
Reference in New Issue
Block a user