rust/src/test/ui/issues/issue-11869.rs
2019-07-03 06:30:28 +09:00

18 lines
293 B
Rust

// build-pass (FIXME(62277): could be 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() {}