summary refs log tree commit diff
path: root/src/test/ui/suggestions/vec-macro-in-pattern.stderr
blob: f9d0464ac88b1f33e8dc7fe4fcf57cbc12a657ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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