fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
235 B8 linesraw
1// run-rustfix
2fn 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}