11error[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
33 |
44LL | / impl<T> Foo for Box<T> {
55LL | | type Ty = bool;
@@ -14,7 +14,7 @@ LL | type Ty = Vec<()>;
1414 = note: to specialize, `Ty` in the parent `impl` must be marked `default`
1515
1616error[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
1818 |
1919LL | / impl<T> Foo for Box<T> {
2020LL | | type Ty = bool;
@@ -29,7 +29,7 @@ LL | const CONST: u8 = 42;
2929 = note: to specialize, `CONST` in the parent `impl` must be marked `default`
3030
3131error[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
3333 |
3434LL | / impl<T> Foo for Box<T> {
3535LL | | type Ty = bool;
@@ -44,7 +44,7 @@ LL | fn foo(&self) -> bool { true }
4444 = note: to specialize, `foo` in the parent `impl` must be marked `default`
4545
4646error[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
4848 |
4949LL | impl<T> Foo for Vec<T> {}
5050 | ------------------------- parent `impl` is here
@@ -55,7 +55,7 @@ LL | type Ty = Vec<()>;
5555 = note: to specialize, `Ty` in the parent `impl` must be marked `default`
5656
5757error[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
5959 |
6060LL | impl<T> Foo for Vec<T> {}
6161 | ------------------------- parent `impl` is here
@@ -66,7 +66,7 @@ LL | const CONST: u8 = 42;
6666 = note: to specialize, `CONST` in the parent `impl` must be marked `default`
6767
6868error[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
7070 |
7171LL | impl<T> Foo for Vec<T> {}
7272 | ------------------------- parent `impl` is here
0 commit comments