]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-5883.rs
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
[rust.git] / tests / ui / issues / issue-5883.rs
1 trait A {}
2
3 struct Struct {
4     r: dyn A + 'static
5 }
6
7 fn new_struct(
8     r: dyn A + 'static //~ ERROR the size for values of type
9 ) -> Struct {          //~ ERROR the size for values of type
10     Struct { r: r }
11 }
12
13 fn main() {}