]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-22034.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-22034.rs
index 8b258180e830fb25822bf79b6ea70c5c6cda922f..3e0ab6d89212a54f328d5915ac49eff0dc8cf5c9 100644 (file)
@@ -14,7 +14,7 @@ fn main() {
     let ptr: *mut () = 0 as *mut _;
     let _: &mut Fn() = unsafe {
         &mut *(ptr as *mut Fn())
-        //~^ ERROR the trait `core::ops::Fn<()>` is not implemented
-        //~| ERROR the trait `core::ops::FnOnce<()>` is not implemented
+        //~^ ERROR `(): std::ops::Fn<()>` is not satisfied
+        //~| ERROR `(): std::ops::FnOnce<()>` is not satisfied
     };
 }