]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-18959.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / compile-fail / issue-18959.rs
index 5f6216a898a0b0351da1eedee6977fc948a58234..7a6d012a3b6054197879a581b577807953ef9e24 100644 (file)
@@ -19,14 +19,12 @@ fn foo<T>(&self, _: &T) {}
 
 #[inline(never)]
 fn foo(b: &Bar) {
+    //~^ ERROR E0038
     b.foo(&0)
-    //~^ ERROR the trait `Foo` is not implemented for the type `Bar`
-    //~| ERROR E0038
-    //~| WARNING E0038
 }
 
 fn main() {
     let mut thing = Thing;
-    let test: &Bar = &mut thing; //~ ERROR E0038
+    let test: &Bar = &mut thing;
     foo(test);
 }