blob: ed4a69129af3daa316f8beedb7fa1c930930aaf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Traits with bounds mentioning `Self` are dyn-incompatible.
trait X {
type U: PartialEq<Self>;
}
fn f() -> Box<dyn X<U = u32>> {
//~^ ERROR the trait `X` is not dyn compatible
loop {}
}
fn main() {}
|