1 trait A {} 2 3 struct Struct { 4 r: dyn A + 'static 5 } 6 new_struct( r: dyn A + 'static ) -> Struct7 fn new_struct( 8 r: dyn A + 'static //~ ERROR the size for values of type 9 ) -> Struct { 10 Struct { r: r } 11 } 12 main()13 fn main() {} 14