Skip to content

Commit aa1e136

Browse files
committed
Merged migrated compile-fail tests and ui tests. Fixes rust-lang#46841.
1 parent ba8be83 commit aa1e136

File tree

6,580 files changed

+733
-511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,580 files changed

+733
-511
lines changed
File renamed without changes.
File renamed without changes.

src/test/ui/E0508-fail.ast.stderr

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0508]: cannot move out of type `[NonCopy; 1]`, a non-copy array
2+
--> $DIR/E0508-fail.rs:18:18
3+
|
4+
LL | let _value = array[0]; //[ast]~ ERROR [E0508]
5+
| ^^^^^^^^
6+
| |
7+
| cannot move out of here
8+
| help: consider using a reference instead: `&array[0]`
9+
10+
error: aborting due to previous error
11+
12+
For more information about this error, try `rustc --explain E0508`.

0 commit comments

Comments
 (0)