]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/anon-params-denied-2018.rs
Auto merge of #62339 - pnkfelix:issue-61188-use-visitor-for-structural-match-check...
[rust.git] / src / test / ui / anon-params-denied-2018.rs
index 5e77aa8fbb923fdf17dcdbc6985e5a947fc2d1a6..abff8275064e24dfd8d922a003feab905deaa06a 100644 (file)
@@ -6,7 +6,13 @@ trait T {
     fn foo(i32); //~ expected one of `:` or `@`, found `)`
 
     fn bar_with_default_impl(String, String) {}
-    //~^ ERROR expected one of `:` or `@`, found `,`
+    //~^ ERROR expected one of `:`
+    //~| ERROR expected one of `:`
+
+    // do not complain about missing `b`
+    fn baz(a:usize, b, c: usize) -> usize { //~ ERROR expected one of `:`
+        a + b + c
+    }
 }
 
 fn main() {}