rust/src/test/ui/suggestions/vec-macro-in-pattern.stderr

16 lines
628 B
Text

error: unexpected `(` after qualified path
--> $DIR/vec-macro-in-pattern.rs:5:14
|
LL | Some(vec![_x]) => (),
| ^^^^^^^^
| |
| unexpected `(` after qualified path
| the qualified path
| in this macro invocation
| help: use a slice pattern here instead: `[_x]`
|
= help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error