summary refs log tree commit diff
path: root/src/test/ui/suggestions/vec-macro-in-pattern.fixed
blob: e1695d6820a817d3ba6d5e4501484872579886c6 (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([_x]) => (), //~ ERROR unexpected `(` after qualified path
        _ => (),
    }
}