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 {}
|
2013-07-17 15:32:02 -07:00
|
|
|
|
|
|
|
|
struct Struct {
|
2019-05-28 14:46:13 -04:00
|
|
|
r: dyn A + 'static
|
2013-07-17 15:32:02 -07:00
|
|
|
}
|
|
|
|
|
|
2021-04-18 19:35:23 +02:00
|
|
|
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
|
2014-09-12 10:45:39 -04:00
|
|
|
Struct { r: r }
|
2013-07-17 15:32:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|