]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-22034.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-22034.stderr
index 132880aab11e360feff89af057f3bd162f284eb4..edcd21ebd6b9b6b9dd2198129d92626035e172b5 100644 (file)
@@ -1,12 +1,12 @@
-error[E0277]: expected a `std::ops::Fn<()>` closure, found `()`
+error[E0277]: expected a `Fn<()>` closure, found `()`
   --> $DIR/issue-22034.rs:8:16
    |
 LL |         &mut *(ptr as *mut dyn Fn())
    |                ^^^ expected an `Fn<()>` closure, found `()`
    |
-   = help: the trait `std::ops::Fn<()>` is not implemented for `()`
+   = help: the trait `Fn<()>` is not implemented for `()`
    = note: wrap the `()` in a closure with no arguments: `|| { /* code */ }`
-   = note: required for the cast to the object type `dyn std::ops::Fn()`
+   = note: required for the cast to the object type `dyn Fn()`
 
 error: aborting due to previous error