Skip to content

Commit ce61b1b

Browse files
committed
Update two E308 tests to the new placeholder error
1 parent 55389f9 commit ce61b1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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 E0308
26+
//[bad]~^ ERROR not general enough
2727
}

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

Lines changed: 1 addition & 1 deletion
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 E0308
46+
foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
4747
}
4848

4949
fn foo_hrtb_bar_hrtb<T>(mut t: T)

0 commit comments

Comments
 (0)