about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlqd <remy.rakic+github@gmail.com>2019-01-25 19:04:26 +0100
committerRémy Rakic <remy.rakic@gmail.com>2019-01-27 10:52:42 +0100
commitce61b1b9fac1d175e13a5f21ffe93cd76dd64481 (patch)
tree65f3320db6fc21afdf43cd79841dd5d7889fab44
parent55389f9171d3e8e05230ae5ea3d07b9c7e54705d (diff)
downloadrust-ce61b1b9fac1d175e13a5f21ffe93cd76dd64481.tar.gz
rust-ce61b1b9fac1d175e13a5f21ffe93cd76dd64481.zip
Update two E308 tests to the new placeholder error
-rw-r--r--src/test/ui/associated-types/higher-ranked-projection.rs2
-rw-r--r--src/test/ui/hrtb/hrtb-perfect-forwarding.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/associated-types/higher-ranked-projection.rs b/src/test/ui/associated-types/higher-ranked-projection.rs
index 5b380c982f0..1280c8cb4cb 100644
--- a/src/test/ui/associated-types/higher-ranked-projection.rs
+++ b/src/test/ui/associated-types/higher-ranked-projection.rs
@@ -23,5 +23,5 @@ fn foo<U, T>(_t: T)
 #[rustc_error]
 fn main() { //[good]~ ERROR compilation successful
     foo(());
-    //[bad]~^ ERROR E0308
+    //[bad]~^ ERROR not general enough
 }
diff --git a/src/test/ui/hrtb/hrtb-perfect-forwarding.rs b/src/test/ui/hrtb/hrtb-perfect-forwarding.rs
index 7bd89960e42..0094091c6bd 100644
--- a/src/test/ui/hrtb/hrtb-perfect-forwarding.rs
+++ b/src/test/ui/hrtb/hrtb-perfect-forwarding.rs
@@ -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 E0308
+    foo_hrtb_bar_not(&mut t); //~ ERROR not general enough
 }
 
 fn foo_hrtb_bar_hrtb<T>(mut t: T)