summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-4759.rs
blob: e5b9e2ed57438bca387786d1b8fcf128b603007b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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();
}