Skip to content

Commit cccd2ce

Browse files
committedAug 22, 2018
cleanup: Add main functions to some UI tests
1 parent f1b506a commit cccd2ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+94
-171
lines changed
 

‎src/test/ui/enum/enum-discrim-autosizing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ enum Eu64 {
1818
Bu64 = 0x8000_0000_0000_0000 //~ERROR already exists
1919
}
2020

21+
fn main() {}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
error[E0601]: `main` function not found in crate `enum_discrim_autosizing`
2-
|
3-
= note: consider adding a `main` function to `$DIR/enum-discrim-autosizing.rs`
4-
51
error[E0081]: discriminant value `0` already exists
62
--> $DIR/enum-discrim-autosizing.rs:18:12
73
|
@@ -10,7 +6,6 @@ LL | Au64 = 0,
106
LL | Bu64 = 0x8000_0000_0000_0000 //~ERROR already exists
117
| ^^^^^^^^^^^^^^^^^^^^^ enum already has `0`
128

13-
error: aborting due to 2 previous errors
9+
error: aborting due to previous error
1410

15-
Some errors occurred: E0081, E0601.
16-
For more information about an error, try `rustc --explain E0081`.
11+
For more information about this error, try `rustc --explain E0081`.

0 commit comments

Comments
 (0)