blob: 1d5d181efcc01009851a6ab5f7b19757f6690b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(associated_type_bounds)]
trait Trait {
type Item;
}
trait Trait2 {}
// It's not possible to insert a universal `impl Trait` here!
impl dyn Trait<Item: Trait2> {}
//~^ ERROR associated type bounds are only allowed in where clauses and function signatures
fn main() {}
|