blob: 5c753ff207c1a6664281d815b41aae643ef11f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(trait_alias)]
trait EqAlias = Eq;
trait IteratorAlias = Iterator;
fn main() {
let _: &dyn EqAlias = &123;
//~^ ERROR the trait `Eq` cannot be made into an object [E0038]
let _: &dyn IteratorAlias = &vec![123].into_iter();
//~^ ERROR must be specified
}
|