From 12eeffdf93a686f3b61f0b7da73eba6757287750 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 31 Jan 2017 16:00:28 +0100 Subject: [PATCH] place the error checks on the correct lines --- tests/compile-fail/large_enum_variant.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/compile-fail/large_enum_variant.rs b/tests/compile-fail/large_enum_variant.rs index d4ce3229560..8d289a32832 100644 --- a/tests/compile-fail/large_enum_variant.rs +++ b/tests/compile-fail/large_enum_variant.rs @@ -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() {