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 Normal View History

2015-04-18 05:12:20 +00:00
trait A {}
struct Struct {
2019-05-28 18:46:13 +00: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() {}