2015-04-17 22:12:20 -07:00
|
|
|
trait A {}
|
2013-07-17 15:32:02 -07:00
|
|
|
|
|
|
|
struct Struct {
|
2014-08-27 21:46:52 -04:00
|
|
|
r: A+'static
|
2013-07-17 15:32:02 -07:00
|
|
|
}
|
|
|
|
|
2014-10-18 23:12:02 +03:00
|
|
|
fn new_struct(r: A+'static)
|
2018-07-10 23:10:13 +02:00
|
|
|
-> Struct { //~^ ERROR the size for values of type
|
|
|
|
//~^ 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() {}
|