blob: 6e31f1b21e5c9a586bfc194359f7d053dbe568a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// check-fail
#![feature(specialization)]
//~^ WARN incomplete
trait Family {
type Member<'a>: for<'b> PartialEq<Self::Member<'b>>;
}
struct I32Family;
impl Family for I32Family {
default type Member<'a> = i32;
}
struct Foo;
struct FooFamily;
impl Family for FooFamily {
default type Member<'a> = Foo;
//~^ ERROR can't compare
}
fn main() {}
|