Skip to content

Commit 0e56a08

Browse files
committed
Update tests
1 parent b0feb5b commit 0e56a08

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/test/ui/feature-gates/feature-gate-default_type_parameter_fallback.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions.
1+
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
22
--> $DIR/feature-gate-default_type_parameter_fallback.rs:3:8
33
|
44
LL | fn avg<T=i32>(_: T) {}
@@ -8,7 +8,7 @@ LL | fn avg<T=i32>(_: T) {}
88
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
1010

11-
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions.
11+
error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
1212
--> $DIR/feature-gate-default_type_parameter_fallback.rs:8:6
1313
|
1414
LL | impl<T=i32> S<T> {}

src/test/ui/generics/generic-non-trailing-defaults.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ struct Vec<A = Heap, T>(A, T);
55

66
struct Foo<A, B = Vec<C>, C>(A, B, C);
77
//~^ ERROR generic parameters with a default must be trailing
8-
//~| ERROR generic parameters with a default cannot use forward declared identifiers
98

109
fn main() {}

src/test/ui/panic-handler/weak-lang-item.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ help: you can use `as` to change the binding name of the import
1010
LL | extern crate core as other_core;
1111
|
1212

13-
error: `#[panic_handler]` function required, but not found
14-
1513
error: language item required, but not found: `eh_personality`
1614

15+
error: `#[panic_handler]` function required, but not found
16+
1717
error: aborting due to 3 previous errors
1818

1919
For more information about this error, try `rustc --explain E0259`.

0 commit comments

Comments
 (0)