Skip to content

Commit

Permalink
fix tests post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Feb 15, 2019
1 parent 4db6a9b commit 9661ee6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/test/ui/associated-types/higher-ranked-projection.bad.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
error: implementation of `Mirror` is not general enough
error[E0308]: mismatched types
--> $DIR/higher-ranked-projection.rs:25:5
|
LL | foo(());
| ^^^
| ^^^ one type is more general than the other
|
= note: Due to a where-clause on `foo`,
= note: `Mirror` would have to be implemented for the type `&'0 ()`, for any lifetime `'0`
= note: but `Mirror` is actually implemented for the type `&'1 ()`, for some specific lifetime `'1`
= note: expected type `&'a ()`
found type `&()`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ error: compilation successful
|
LL | / fn main() { //[good]~ ERROR compilation successful
LL | | foo(());
LL | | //[bad]~^ ERROR not general enough
LL | | //[bad]~^ ERROR mismatched types
LL | | }
| |_^

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/associated-types/higher-ranked-projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ fn foo<U, T>(_t: T)
#[rustc_error]
fn main() { //[good]~ ERROR compilation successful
foo(());
//[bad]~^ ERROR not general enough
//[bad]~^ ERROR mismatched types
}
2 changes: 1 addition & 1 deletion src/test/ui/hrtb/hrtb-perfect-forwarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn foo_hrtb_bar_not<'b,T>(mut t: T)
// be implemented. Thus to satisfy `&mut T : for<'a> Foo<&'a
// isize>`, we require `T : for<'a> Bar<&'a isize>`, but the where
// clause only specifies `T : Bar<&'b isize>`.
foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
foo_hrtb_bar_not(&mut t); //~ ERROR mismatched types
}

fn foo_hrtb_bar_hrtb<T>(mut t: T)
Expand Down
12 changes: 6 additions & 6 deletions src/test/ui/hrtb/hrtb-perfect-forwarding.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
error: implementation of `Foo` is not general enough
error[E0308]: mismatched types
--> $DIR/hrtb-perfect-forwarding.rs:46:5
|
LL | foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
| ^^^^^^^^^^^^^^^^
LL | foo_hrtb_bar_not(&mut t); //~ ERROR mismatched types
| ^^^^^^^^^^^^^^^^ one type is more general than the other
|
= note: Due to a where-clause on `foo_hrtb_bar_not`,
= note: `&mut T` must implement `Foo<&'0 isize>`, for any lifetime `'0`
= note: but `&mut T` actually implements `Foo<&'1 isize>`, for some specific lifetime `'1`
= note: expected type `Bar<&'a isize>`
found type `Bar<&'b isize>`

error: aborting due to previous error

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

0 comments on commit 9661ee6

Please sign in to comment.