rust/tests/ui/parser/misspelled-keywords/ref.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
225 B
Rust
Raw Normal View History

2024-09-02 02:27:43 +00:00
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"),
}
}