1
1
error[E0520]: `Ty` specializes an item from a parent `impl`, but that item is not marked `default`
2
- --> $DIR/specialization-default-methods -fail.rs:29:5
2
+ --> $DIR/non-defaulted-item -fail.rs:29:5
3
3
|
4
4
LL | / impl<T> Foo for Box<T> {
5
5
LL | | type Ty = bool;
@@ -14,7 +14,7 @@ LL | type Ty = Vec<()>;
14
14
= note: to specialize, `Ty` in the parent `impl` must be marked `default`
15
15
16
16
error[E0520]: `CONST` specializes an item from a parent `impl`, but that item is not marked `default`
17
- --> $DIR/specialization-default-methods -fail.rs:31:5
17
+ --> $DIR/non-defaulted-item -fail.rs:31:5
18
18
|
19
19
LL | / impl<T> Foo for Box<T> {
20
20
LL | | type Ty = bool;
@@ -29,7 +29,7 @@ LL | const CONST: u8 = 42;
29
29
= note: to specialize, `CONST` in the parent `impl` must be marked `default`
30
30
31
31
error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
32
- --> $DIR/specialization-default-methods -fail.rs:33:5
32
+ --> $DIR/non-defaulted-item -fail.rs:33:5
33
33
|
34
34
LL | / impl<T> Foo for Box<T> {
35
35
LL | | type Ty = bool;
@@ -44,7 +44,7 @@ LL | fn foo(&self) -> bool { true }
44
44
= note: to specialize, `foo` in the parent `impl` must be marked `default`
45
45
46
46
error[E0520]: `Ty` specializes an item from a parent `impl`, but that item is not marked `default`
47
- --> $DIR/specialization-default-methods -fail.rs:45:5
47
+ --> $DIR/non-defaulted-item -fail.rs:45:5
48
48
|
49
49
LL | impl<T> Foo for Vec<T> {}
50
50
| ------------------------- parent `impl` is here
@@ -55,7 +55,7 @@ LL | type Ty = Vec<()>;
55
55
= note: to specialize, `Ty` in the parent `impl` must be marked `default`
56
56
57
57
error[E0520]: `CONST` specializes an item from a parent `impl`, but that item is not marked `default`
58
- --> $DIR/specialization-default-methods -fail.rs:47:5
58
+ --> $DIR/non-defaulted-item -fail.rs:47:5
59
59
|
60
60
LL | impl<T> Foo for Vec<T> {}
61
61
| ------------------------- parent `impl` is here
@@ -66,7 +66,7 @@ LL | const CONST: u8 = 42;
66
66
= note: to specialize, `CONST` in the parent `impl` must be marked `default`
67
67
68
68
error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
69
- --> $DIR/specialization-default-methods -fail.rs:49:5
69
+ --> $DIR/non-defaulted-item -fail.rs:49:5
70
70
|
71
71
LL | impl<T> Foo for Vec<T> {}
72
72
| ------------------------- parent `impl` is here
0 commit comments