mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
15 lines
267 B
Rust
15 lines
267 B
Rust
// https://github.com/rust-lang/rust/issues/5883
|
|
trait A {}
|
|
|
|
struct Struct {
|
|
r: dyn A + 'static
|
|
}
|
|
|
|
fn new_struct(
|
|
r: dyn A + 'static //~ ERROR the size for values of type
|
|
) -> Struct { //~ ERROR the size for values of type
|
|
Struct { r: r }
|
|
}
|
|
|
|
fn main() {}
|