]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/vec-macro-in-pattern.fixed
Auto merge of #64925 - ehuss:document-json, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / vec-macro-in-pattern.fixed
1 // run-rustfix
2 fn main() {
3     // everything after `.as_ref` should be suggested
4     match Some(vec![3]).as_ref().map(|v| v.as_slice()) {
5         Some([_x]) => (), //~ ERROR unexpected `(` after qualified path
6         _ => (),
7     }
8 }