mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
place the error checks on the correct lines
This commit is contained in:
parent
75f605ccf6
commit
12eeffdf93
1 changed files with 2 additions and 3 deletions
|
@ -41,12 +41,11 @@ enum AnotherLargeEnum {
|
|||
StructLikeLittle { x: i32, y: i32 },
|
||||
StructLikeLarge { x: [i32; 8000], y: i32 }, //~ ERROR large enum variant found
|
||||
//~^ HELP consider boxing the large fields to reduce the total size of the enum
|
||||
StructLikeLarge2 {
|
||||
StructLikeLarge2 { //~ ERROR large enum variant found
|
||||
x:
|
||||
[i32; 8000] //~ SUGGESTION Box<[i32; 8000]>
|
||||
//~^ HELP consider boxing the large fields to reduce the total size of the enum
|
||||
},
|
||||
//~^ ERROR large enum variant found
|
||||
//~^ HELP consider boxing the large fields to reduce the total size of the enum
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue