Skip to content

Commit

Permalink
Updated style of unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Poveda committed Aug 5, 2016
1 parent 8641bc2 commit 00179a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/compile-fail/issue-15524.rs
Expand Up @@ -12,16 +12,18 @@ const N: isize = 1;

enum Foo {
A = 1,
//~^ NOTE first use
//~| NOTE first use
//~| NOTE first use
B = 1, //~ ERROR discriminant value
//~^ NOTE enum already
//~^^^ NOTE first use
C = 0,
D, //~ ERROR discriminant value
//~^ NOTE enum already
//~^^^^^^^ NOTE first use

E = N, //~ ERROR discriminant value
//~^ NOTE enum already
//~^^^^^^^^^^ NOTE first use

}

fn main() {}

0 comments on commit 00179a7

Please sign in to comment.