summary refs log tree commit diff
path: root/src/test/ui/suggestions/vec-macro-in-pattern.rs
AgeCommit message (Collapse)AuthorLines
2019-08-09review comments: use structured suggestionEsteban Küber-2/+4
2019-08-09More explicit diagnostic when using a `vec![]` in a patternEsteban Küber-0/+6
``` 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) ```