2015-04-17 22:12:20 -07:00
|
|
|
trait Trait {}
|
2014-08-28 18:50:00 +12:00
|
|
|
|
|
|
|
pub fn main() {
|
2019-05-28 14:46:13 -04:00
|
|
|
let x: Vec<dyn Trait + Sized> = Vec::new();
|
2017-11-04 19:44:19 -02:00
|
|
|
//~^ ERROR only auto traits can be used as additional traits in a trait object
|
2018-07-10 23:10:13 +02:00
|
|
|
//~| ERROR the size for values of type
|
|
|
|
//~| ERROR the size for values of type
|
2021-03-13 19:14:18 +03:00
|
|
|
//~| ERROR the size for values of type
|
2014-08-28 18:50:00 +12:00
|
|
|
}
|