2015-09-24 18:40:57 -05:00
|
|
|
trait Array: Sized {}
|
|
|
|
|
|
|
|
fn f<T: Array>(x: &T) {
|
|
|
|
let _ = x
|
|
|
|
//~^ ERROR `Array` cannot be made into an object
|
|
|
|
as
|
2019-05-28 13:46:13 -05:00
|
|
|
&dyn Array;
|
2015-09-24 18:40:57 -05:00
|
|
|
//~^ ERROR `Array` cannot be made into an object
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|