And also --bless those recovery tests.

This commit is contained in:
Mazdak Farrokhzad 2019-07-09 08:44:56 +02:00
parent 2411134c78
commit f6c8234f9f
5 changed files with 150 additions and 19 deletions

View file

@ -1,8 +1,40 @@
error: expected one of `)` or `,`, found `pat`
error: `..X` range patterns are not supported
--> $DIR/pat-tuple-4.rs:3:10
|
LL | (.. pat) => {}
| ^^^^^^ help: try using the minimum value for the type: `MIN..pat`
error: arbitrary expressions aren't allowed in patterns
--> $DIR/pat-tuple-4.rs:3:10
|
LL | (.. pat) => {}
| ^^^^^^
error[E0425]: cannot find value `pat` in this scope
--> $DIR/pat-tuple-4.rs:3:13
|
LL | (.. pat) => {}
| ^^^ expected one of `)` or `,` here
| ^^^ not found in this scope
error: aborting due to previous error
error[E0658]: exclusive range pattern syntax is experimental
--> $DIR/pat-tuple-4.rs:3:10
|
LL | (.. pat) => {}
| ^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/37854
= help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable
error[E0029]: only char and numeric types are allowed in range patterns
--> $DIR/pat-tuple-4.rs:3:10
|
LL | (.. pat) => {}
| ^^^^^^ ranges require char or numeric types
|
= note: start type: [type error]
= note: end type: [type error]
error: aborting due to 5 previous errors
Some errors have detailed explanations: E0029, E0425, E0658.
For more information about an error, try `rustc --explain E0029`.

View file

@ -1,8 +1,40 @@
error: unexpected token: `)`
--> $DIR/pat-tuple-5.rs:3:16
error: `X..` range patterns are not supported
--> $DIR/pat-tuple-5.rs:3:10
|
LL | (pat ..) => {}
| ^
| ^^^^^^ help: try using the maximum value for the type: `pat..MAX`
error: aborting due to previous error
error: arbitrary expressions aren't allowed in patterns
--> $DIR/pat-tuple-5.rs:3:10
|
LL | (pat ..) => {}
| ^^^^^^
error[E0425]: cannot find value `pat` in this scope
--> $DIR/pat-tuple-5.rs:3:10
|
LL | (pat ..) => {}
| ^^^ not found in this scope
error[E0658]: exclusive range pattern syntax is experimental
--> $DIR/pat-tuple-5.rs:3:10
|
LL | (pat ..) => {}
| ^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/37854
= help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable
error[E0029]: only char and numeric types are allowed in range patterns
--> $DIR/pat-tuple-5.rs:3:10
|
LL | (pat ..) => {}
| ^^^^^^ ranges require char or numeric types
|
= note: start type: [type error]
= note: end type: [type error]
error: aborting due to 5 previous errors
Some errors have detailed explanations: E0029, E0425, E0658.
For more information about an error, try `rustc --explain E0029`.