2018-10-20 20:36:17 +00:00
|
|
|
error: expected one of `)`, `,`, or `@`, found `[`
|
2019-07-24 00:30:37 +00:00
|
|
|
--> $DIR/pat-lt-bracket-6.rs:5:19
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let Test(&desc[..]) = x;
|
2018-10-20 20:36:17 +00:00
|
|
|
| ^ expected one of `)`, `,`, or `@` here
|
|
|
|
|
2019-07-09 04:30:03 +00:00
|
|
|
error[E0658]: subslice patterns are unstable
|
2019-07-24 00:30:37 +00:00
|
|
|
--> $DIR/pat-lt-bracket-6.rs:5:20
|
2019-07-09 04:30:03 +00:00
|
|
|
|
|
|
|
|
LL | let Test(&desc[..]) = x;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
|
2019-07-10 14:18:01 +00:00
|
|
|
= help: add `#![feature(slice_patterns)]` to the crate attributes to enable
|
2019-07-09 04:30:03 +00:00
|
|
|
|
2019-07-24 00:30:37 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/pat-lt-bracket-6.rs:9:30
|
|
|
|
|
|
|
|
|
LL | const RECOVERY_WITNESS: () = 0;
|
|
|
|
| ^ expected (), found integer
|
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `{integer}`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2019-07-24 00:30:37 +00:00
|
|
|
Some errors have detailed explanations: E0308, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0308`.
|