Skip to content

Commit

Permalink
Start working on a test
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Aug 24, 2018
1 parent 3e073ab commit 3c3c642
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/ui/anon-params-denied-2018.rs
@@ -0,0 +1,13 @@
// Test that anonymous parameters are disallowed in 2018 edition.

// edition:2018

trait T {
fn foo(i32); //~ ERROR expected identifier

fn bar_with_default_impl(String, String) {}
//~^ ERROR expected identifier
//~| ERROR expected identifier
}

fn main() {}

0 comments on commit 3c3c642

Please sign in to comment.