]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/fn-in-pat.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / fn-in-pat.rs
index b83252012b8f8bfd1572e0e8f5023e0d523d45ba..2d7c86b8666f855347402710f07e3758d9b0d1f8 100644 (file)
@@ -8,7 +8,7 @@ fn hof<F>(_: F) where F: FnMut(()) {}
 
 fn ice() {
     hof(|c| match c {
-        A::new() => (), //~ ERROR expected tuple struct or tuple variant, found method
+        A::new() => (), //~ ERROR expected tuple struct or tuple variant, found associated function
         _ => ()
     })
 }