rust/src/test/ui/issues/issue-5883.rs
2019-05-29 00:57:31 -04:00

13 lines
222 B
Rust

trait A {}
struct Struct {
r: dyn A + 'static
}
fn new_struct(r: dyn A + 'static)
-> Struct { //~^ ERROR the size for values of type
//~^ ERROR the size for values of type
Struct { r: r }
}
fn main() {}