about summary refs log tree commit diff
path: root/tests/ui/parser/misspelled-keywords/ref.rs
blob: 76b367ae99b7591c145df3c9ea3e2a60d755a39c (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let a = Some(vec![1, 2]);
    match a {
        Some(refe list) => println!("{list:?}"),
        //~^ ERROR expected one of
        //~| ERROR this pattern has 2 fields,
        _ => println!("none"),
    }
}