]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/extern/extern-wrong-value-type.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / extern / extern-wrong-value-type.stderr
index 2cb15f84f6973922f4cb0087658df1268d93c75d..d92b5f43110b161525f7070c7cec3a8c0b03baf1 100644 (file)
@@ -1,4 +1,4 @@
-error[E0277]: expected a `std::ops::Fn<()>` closure, found `extern "C" fn() {f}`
+error[E0277]: expected a `Fn<()>` closure, found `extern "C" fn() {f}`
   --> $DIR/extern-wrong-value-type.rs:9:11
    |
 LL | fn is_fn<F>(_: F) where F: Fn() {}
@@ -7,7 +7,7 @@ LL | fn is_fn<F>(_: F) where F: Fn() {}
 LL |     is_fn(f);
    |           ^ expected an `Fn<()>` closure, found `extern "C" fn() {f}`
    |
-   = help: the trait `std::ops::Fn<()>` is not implemented for `extern "C" fn() {f}`
+   = help: the trait `Fn<()>` is not implemented for `extern "C" fn() {f}`
    = note: wrap the `extern "C" fn() {f}` in a closure with no arguments: `|| { /* code */ }`
 
 error: aborting due to previous error