rust/tests/ui/issues/issue-11869.rs
2023-01-11 09:32:08 +00:00

18 lines
256 B
Rust

// check-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
struct A {
a: String
}
fn borrow<'a>(binding: &'a A) -> &'a str {
match &*binding.a {
"in" => "in_",
"ref" => "ref_",
ident => ident
}
}
fn main() {}