rust/tests/ui/issues/issue-5883.rs
2023-06-15 03:18:21 +00:00

13 lines
180 B
Rust

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