1
Fork 0

Tweak tests to avoid confusing suggestion output

This commit is contained in:
Esteban Küber 2024-07-11 21:42:15 +00:00
parent c2b3287483
commit dd40e0b4ee
6 changed files with 12 additions and 12 deletions

View file

@ -7,11 +7,10 @@ LL | enum Bar { Baz },
help: consider creating a new `enum` definition instead of nesting
|
LL - enum Bar { Baz },
LL +
|
error: `struct` definition cannot be nested inside `enum`
--> $DIR/nested-enum.rs:3:5
--> $DIR/nested-enum.rs:4:5
|
LL | struct Quux { field: u8 },
| ^^^^^^
@ -19,11 +18,10 @@ LL | struct Quux { field: u8 },
help: consider creating a new `struct` definition instead of nesting
|
LL - struct Quux { field: u8 },
LL +
|
error: `union` definition cannot be nested inside `enum`
--> $DIR/nested-enum.rs:4:5
--> $DIR/nested-enum.rs:6:5
|
LL | union Wibble { field: u8 },
| ^^^^^
@ -31,7 +29,6 @@ LL | union Wibble { field: u8 },
help: consider creating a new `union` definition instead of nesting
|
LL - union Wibble { field: u8 },
LL +
|
error: aborting due to 3 previous errors