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
|
2023-06-15 03:18:12 +00:00
|
|
|
) -> Struct {
|
2014-09-12 10:45:39 -04:00
|
|
|
Struct { r: r }
|
2013-07-17 15:32:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|