rust/src/test/ui/issues/issue-11869.rs
2018-12-25 21:08:33 -07:00

18 lines
258 B
Rust

// compile-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() {}