blob: 51826225856bd2a22da480f76e15433be5163169 [file] [log] [blame] [edit]
//@ check-pass
#![feature(deref_patterns)]
#![expect(incomplete_features)]
fn foo(s: &String) -> i32 {
match *s {
"a" => 42,
_ => -1,
}
}
fn bar(s: Option<&&&&String>) -> i32 {
match s {
Some(&&&&"&&&&") => 1,
_ => -1,
}
}
fn main() {}