]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5883.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / 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() {}