Skip to content

Commit 9661ee6

Browse files
committed
fix tests post-rebase
1 parent 4db6a9b commit 9661ee6

5 files changed

+14
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error: implementation of `Mirror` is not general enough
1+
error[E0308]: mismatched types
22
--> $DIR/higher-ranked-projection.rs:25:5
33
|
44
LL | foo(());
5-
| ^^^
5+
| ^^^ one type is more general than the other
66
|
7-
= note: Due to a where-clause on `foo`,
8-
= note: `Mirror` would have to be implemented for the type `&'0 ()`, for any lifetime `'0`
9-
= note: but `Mirror` is actually implemented for the type `&'1 ()`, for some specific lifetime `'1`
7+
= note: expected type `&'a ()`
8+
found type `&()`
109

1110
error: aborting due to previous error
1211

12+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/associated-types/higher-ranked-projection.good.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: compilation successful
33
|
44
LL | / fn main() { //[good]~ ERROR compilation successful
55
LL | | foo(());
6-
LL | | //[bad]~^ ERROR not general enough
6+
LL | | //[bad]~^ ERROR mismatched types
77
LL | | }
88
| |_^
99

src/test/ui/associated-types/higher-ranked-projection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ fn foo<U, T>(_t: T)
2323
#[rustc_error]
2424
fn main() { //[good]~ ERROR compilation successful
2525
foo(());
26-
//[bad]~^ ERROR not general enough
26+
//[bad]~^ ERROR mismatched types
2727
}

src/test/ui/hrtb/hrtb-perfect-forwarding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn foo_hrtb_bar_not<'b,T>(mut t: T)
4343
// be implemented. Thus to satisfy `&mut T : for<'a> Foo<&'a
4444
// isize>`, we require `T : for<'a> Bar<&'a isize>`, but the where
4545
// clause only specifies `T : Bar<&'b isize>`.
46-
foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
46+
foo_hrtb_bar_not(&mut t); //~ ERROR mismatched types
4747
}
4848

4949
fn foo_hrtb_bar_hrtb<T>(mut t: T)
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error: implementation of `Foo` is not general enough
1+
error[E0308]: mismatched types
22
--> $DIR/hrtb-perfect-forwarding.rs:46:5
33
|
4-
LL | foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
5-
| ^^^^^^^^^^^^^^^^
4+
LL | foo_hrtb_bar_not(&mut t); //~ ERROR mismatched types
5+
| ^^^^^^^^^^^^^^^^ one type is more general than the other
66
|
7-
= note: Due to a where-clause on `foo_hrtb_bar_not`,
8-
= note: `&mut T` must implement `Foo<&'0 isize>`, for any lifetime `'0`
9-
= note: but `&mut T` actually implements `Foo<&'1 isize>`, for some specific lifetime `'1`
7+
= note: expected type `Bar<&'a isize>`
8+
found type `Bar<&'b isize>`
109

1110
error: aborting due to previous error
1211

12+
For more information about this error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)