mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
258 B
Rust
17 lines
258 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() {}
|