Skip to content

Commit 51f0c0d

Browse files
committed
Move some E0XXX to ui
1 parent e87e0bc commit 51f0c0d

File tree

482 files changed

+3026
-0
lines changed

Some content is hidden

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

482 files changed

+3026
-0
lines changed
File renamed without changes.

src/test/ui/error-codes/E0001.stderr

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: unreachable pattern
2+
--> $DIR/E0001.rs:18:9
3+
|
4+
18 | _ => {/* ... */} //~ ERROR unreachable pattern
5+
| ^
6+
|
7+
note: lint level defined here
8+
--> $DIR/E0001.rs:11:9
9+
|
10+
11 | #![deny(unreachable_patterns)]
11+
| ^^^^^^^^^^^^^^^^^^^^
12+
13+
error: aborting due to previous error
14+
File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0004]: non-exhaustive patterns: type std::option::Option<i32> is non-empty
2+
--> $DIR/E0004-2.rs:14:11
3+
|
4+
14 | match x { } //~ ERROR E0004
5+
| ^
6+
|
7+
help: Please ensure that all possible cases are being handled; possibly adding wildcards or more match arms.
8+
--> $DIR/E0004-2.rs:14:11
9+
|
10+
14 | match x { } //~ ERROR E0004
11+
| ^
12+
13+
error: aborting due to previous error
14+
File renamed without changes.

src/test/ui/error-codes/E0004.stderr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
2+
--> $DIR/E0004.rs:19:11
3+
|
4+
19 | match x { //~ ERROR E0004
5+
| ^ pattern `HastaLaVistaBaby` not covered
6+
7+
error: aborting due to previous error
8+
File renamed without changes.

src/test/ui/error-codes/E0005.stderr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error[E0005]: refutable pattern in local binding: `None` not covered
2+
--> $DIR/E0005.rs:13:9
3+
|
4+
13 | let Some(y) = x; //~ ERROR E0005
5+
| ^^^^^^^ pattern `None` not covered
6+
7+
error: aborting due to previous error
8+
File renamed without changes.

src/test/ui/error-codes/E0007.stderr

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0007]: cannot bind by-move with sub-bindings
2+
--> $DIR/E0007.rs:14:9
3+
|
4+
14 | op_string @ Some(s) => {},
5+
| ^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
6+
7+
error[E0303]: pattern bindings are not allowed after an `@`
8+
--> $DIR/E0007.rs:14:26
9+
|
10+
14 | op_string @ Some(s) => {},
11+
| ^ not allowed after `@`
12+
13+
error: aborting due to 2 previous errors
14+

0 commit comments

Comments
 (0)