os-rust/tests/ui/issues/issue-5883.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
180 B
Rust
Raw Permalink Normal View History

2015-04-17 22:12:20 -07:00
trait A {}
struct Struct {
2019-05-28 14:46:13 -04:00
r: dyn A + 'static
}
fn new_struct(
r: dyn A + 'static //~ ERROR the size for values of type
) -> Struct {
Struct { r: r }
}
fn main() {}