Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 293 Bytes
// 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() {}
You can’t perform that action at this time.