Files
rust/tests/ui/traits/opaque-trait-size-error-5883.rs

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

15 lines
267 B
Rust
Raw Normal View History

2025-08-20 14:02:39 -04:00
// https://github.com/rust-lang/rust/issues/5883
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
2025-01-30 04:23:14 +00:00
) -> Struct { //~ ERROR the size for values of type
Struct { r: r }
}
fn main() {}