about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-08-08 18:24:00 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-08-09 08:20:13 -0700
commit7c96d90c2081f3ca84b3786a125cf2c415335e40 (patch)
tree7b9bc7f69a5a318efb6388ebd41eff8ae03fa1a9 /src/libsyntax/parse/parser
parent813a3a5d4b2be4e2101faa73a067da02a704a598 (diff)
downloadrust-7c96d90c2081f3ca84b3786a125cf2c415335e40.tar.gz
rust-7c96d90c2081f3ca84b3786a125cf2c415335e40.zip
More explicit diagnostic when using a `vec![]` in a pattern
```
error: unexpected `(` after qualified path
  --> $DIR/vec-macro-in-pattern.rs:3:14
   |
LL |         Some(vec![x]) => (),
   |              ^^^^^^^
   |              |
   |              unexpected `(` after qualified path
   |              in this macro invocation
   |              use a slice pattern here instead
   |
   = help: for more information, see https://doc.rust-lang.org/edition-guide/rust-2018/slice-patterns.html
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
```
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions