Skip to content

Commit 3c3c642

Browse files
committed
Start working on a test
1 parent 3e073ab commit 3c3c642

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Test that anonymous parameters are disallowed in 2018 edition.
2+
3+
// edition:2018
4+
5+
trait T {
6+
fn foo(i32); //~ ERROR expected identifier
7+
8+
fn bar_with_default_impl(String, String) {}
9+
//~^ ERROR expected identifier
10+
//~| ERROR expected identifier
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)