Add ui test for #99625
This commit is contained in:
parent
254b89d209
commit
0ad06f1482
3 changed files with 34 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
// run-rustfix
|
||||
|
||||
pub enum Range {
|
||||
//~^ ERROR `enum` and `struct` are mutually exclusive
|
||||
Valid {
|
||||
begin: u32,
|
||||
len: u32,
|
||||
},
|
||||
Out,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
@ -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() {
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue