]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-68645-codegen-fulfillment.stderr
index 0670625aa2f1b0abc59e65808aa6760cad20d1a5..6c2d330a19a82080929ae775918e0ba343500060 100644 (file)
@@ -7,7 +7,7 @@ LL | #![feature(generic_associated_types)]
    = note: `#[warn(incomplete_features)]` on by default
    = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
 
-error[E0277]: expected a `std::ops::Fn<()>` closure, found `T`
+error[E0277]: expected a `Fn<()>` closure, found `T`
   --> $DIR/issue-68645-codegen-fulfillment.rs:15:5
    |
 LL |     type F<'a>: Fn() -> u32;
@@ -19,8 +19,8 @@ LL |     type F<'a> = Self;
    = note: wrap the `T` in a closure with no arguments: `|| { /* code */ }`
 help: consider restricting type parameter `T`
    |
-LL | impl<T: std::ops::Fn<()>> Fun for T {
-   |       ^^^^^^^^^^^^^^^^^^
+LL | impl<T: Fn<()>> Fun for T {
+   |       ^^^^^^^^
 
 error: aborting due to previous error; 1 warning emitted