mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
19 lines
260 B
Rust
19 lines
260 B
Rust
// run-pass
|
|
// pretty-expanded FIXME #23616
|
|
#![allow(non_shorthand_field_patterns)]
|
|
|
|
struct T { a: Box<isize> }
|
|
|
|
trait U {
|
|
fn f(self);
|
|
}
|
|
|
|
impl U for Box<isize> {
|
|
fn f(self) { }
|
|
}
|
|
|
|
pub fn main() {
|
|
let T { a: a } = T { a: Box::new(0) };
|
|
a.f();
|
|
}
|