Skip to content

Commit 0ad06f1

Browse files
committed
Add ui test for #99625
1 parent 254b89d commit 0ad06f1

3 files changed

+34
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// run-rustfix
2+
3+
pub enum Range {
4+
//~^ ERROR `enum` and `struct` are mutually exclusive
5+
Valid {
6+
begin: u32,
7+
len: u32,
8+
},
9+
Out,
10+
}
11+
12+
fn main() {
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// run-rustfix
2+
3+
pub enum struct Range {
4+
//~^ ERROR `enum` and `struct` are mutually exclusive
5+
Valid {
6+
begin: u32,
7+
len: u32,
8+
},
9+
Out,
10+
}
11+
12+
fn main() {
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: `enum` and `struct` are mutually exclusive
2+
--> $DIR/issue-99625-enum-struct-mutually-exclusive.rs:3:5
3+
|
4+
LL | pub enum struct Range {
5+
| ^^^^^^^^^^^ help: replace `enum struct` with: `enum`
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)