Rename the test
This commit is contained in:
parent
33d23cdf04
commit
47f89e7485
2 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
error[E0520]: `Ty` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:29:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:29:5
|
||||
|
|
||||
LL | / impl<T> Foo for Box<T> {
|
||||
LL | | type Ty = bool;
|
||||
|
|
@ -14,7 +14,7 @@ LL | type Ty = Vec<()>;
|
|||
= note: to specialize, `Ty` in the parent `impl` must be marked `default`
|
||||
|
||||
error[E0520]: `CONST` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:31:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:31:5
|
||||
|
|
||||
LL | / impl<T> Foo for Box<T> {
|
||||
LL | | type Ty = bool;
|
||||
|
|
@ -29,7 +29,7 @@ LL | const CONST: u8 = 42;
|
|||
= note: to specialize, `CONST` in the parent `impl` must be marked `default`
|
||||
|
||||
error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:33:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:33:5
|
||||
|
|
||||
LL | / impl<T> Foo for Box<T> {
|
||||
LL | | type Ty = bool;
|
||||
|
|
@ -44,7 +44,7 @@ LL | fn foo(&self) -> bool { true }
|
|||
= note: to specialize, `foo` in the parent `impl` must be marked `default`
|
||||
|
||||
error[E0520]: `Ty` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:45:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:45:5
|
||||
|
|
||||
LL | impl<T> Foo for Vec<T> {}
|
||||
| ------------------------- parent `impl` is here
|
||||
|
|
@ -55,7 +55,7 @@ LL | type Ty = Vec<()>;
|
|||
= note: to specialize, `Ty` in the parent `impl` must be marked `default`
|
||||
|
||||
error[E0520]: `CONST` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:47:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:47:5
|
||||
|
|
||||
LL | impl<T> Foo for Vec<T> {}
|
||||
| ------------------------- parent `impl` is here
|
||||
|
|
@ -66,7 +66,7 @@ LL | const CONST: u8 = 42;
|
|||
= note: to specialize, `CONST` in the parent `impl` must be marked `default`
|
||||
|
||||
error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
|
||||
--> $DIR/specialization-default-methods-fail.rs:49:5
|
||||
--> $DIR/non-defaulted-item-fail.rs:49:5
|
||||
|
|
||||
LL | impl<T> Foo for Vec<T> {}
|
||||
| ------------------------- parent `impl` is here
|
||||
Loading…
Add table
Add a link
Reference in a new issue