]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/functions-closures/fn-help-with-err.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / functions-closures / fn-help-with-err.rs
index f8a81af786f7ef8f61a0d25eadfaacaa388876f3..3d2bcb8ad3550922d568c46c90673cf16ef72f8f 100644 (file)
@@ -3,14 +3,14 @@ fn main() {
     let arc = std::sync::Arc::new(oops);
     //~^ ERROR cannot find value `oops` in this scope
     //~| NOTE not found
-    // The error "note: `arc` is a function, perhaps you wish to call it" MUST NOT appear.
+    // The error "note: this is a function, perhaps you wish to call it" MUST NOT appear.
     arc.blablabla();
     //~^ ERROR no method named `blablabla`
     //~| NOTE method not found
     let arc2 = std::sync::Arc::new(|| 1);
-    // The error "note: `arc2` is a function, perhaps you wish to call it" SHOULD appear
+    // The error "note: this is a function, perhaps you wish to call it" SHOULD appear
     arc2.blablabla();
     //~^ ERROR no method named `blablabla`
     //~| NOTE method not found
-    //~| NOTE `arc2` is a function, perhaps you wish to call it
+    //~| NOTE this is a function, perhaps you wish to call it
 }