Add ui test for #99625

This commit is contained in:
Obei Sideg 2022-07-27 02:17:07 +03:00
parent 254b89d209
commit 0ad06f1482
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// run-rustfix
pub enum Range {
//~^ ERROR `enum` and `struct` are mutually exclusive
Valid {
begin: u32,
len: u32,
},
Out,
}
fn main() {
}

View File

@ -0,0 +1,13 @@
// run-rustfix
pub enum struct Range {
//~^ ERROR `enum` and `struct` are mutually exclusive
Valid {
begin: u32,
len: u32,
},
Out,
}
fn main() {
}

View File

@ -0,0 +1,8 @@
error: `enum` and `struct` are mutually exclusive
--> $DIR/issue-99625-enum-struct-mutually-exclusive.rs:3:5
|
LL | pub enum struct Range {
| ^^^^^^^^^^^ help: replace `enum struct` with: `enum`
error: aborting due to previous error