2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-10-02 14:52:06 -05:00
|
|
|
struct A {
|
|
|
|
a: String
|
|
|
|
}
|
|
|
|
|
|
|
|
fn borrow<'a>(binding: &'a A) -> &'a str {
|
2015-02-01 20:53:25 -06:00
|
|
|
match &*binding.a {
|
2014-10-02 14:52:06 -05:00
|
|
|
"in" => "in_",
|
|
|
|
"ref" => "ref_",
|
|
|
|
ident => ident
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|