]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/trait-impl-method-mismatch.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / traits / trait-impl-method-mismatch.rs
index 886e92604a0be9e5bcef83dec3a3fb2339f13103..683b1c1aa43e64abe59f8ea257bb7303b780a277 100644 (file)
@@ -6,8 +6,8 @@ impl Mumbo for usize {
     // Cannot have a larger effect than the trait:
     unsafe fn jumbo(&self, x: &usize) { *self + *x; }
     //~^ ERROR method `jumbo` has an incompatible type for trait
-    //~| expected type `fn
-    //~| found type `unsafe fn
+    //~| expected fn pointer `fn
+    //~| found fn pointer `unsafe fn
 }
 
 fn main() {}