summary refs log tree commit diff
path: root/src/test/ui/suggestions/vec-macro-in-pattern.rs
blob: 4843629fbcf904788e0567d86717418ce7005794 (plain)
1
2
3
4
5
6
7
8
// run-rustfix
fn main() {
    // everything after `.as_ref` should be suggested
    match Some(vec![3]).as_ref().map(|v| v.as_slice()) {
        Some(vec![_x]) => (), //~ ERROR unexpected `(` after qualified path
        _ => (),
    }
}