]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-4759.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-4759.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3 #![allow(non_shorthand_field_patterns)]
4
5 struct T { a: Box<isize> }
6
7 trait U {
8     fn f(self);
9 }
10
11 impl U for Box<isize> {
12     fn f(self) { }
13 }
14
15 pub fn main() {
16     let T { a: a } = T { a: Box::new(0) };
17     a.f();
18 }