diff --git a/tests/ui/trailing_zero_sized_array_without_repr.rs b/tests/ui/trailing_zero_sized_array_without_repr.rs index 5b12a882aa7..52966c64db7 100644 --- a/tests/ui/trailing_zero_sized_array_without_repr.rs +++ b/tests/ui/trailing_zero_sized_array_without_repr.rs @@ -18,7 +18,7 @@ struct GenericArrayType { } #[must_use] -struct OnlyAnotherAttributeMustUse { +struct OnlyAnotherAttribute { field: i32, last: [usize; 0], } @@ -26,7 +26,7 @@ struct OnlyAnotherAttributeMustUse { // NOTE: Unfortunately the attribute isn't included in the lint output. I'm not sure how to make it // show up. #[derive(Debug)] -struct OnlyAnotherAttributeDerive { +struct OnlyADeriveAttribute { field: i32, last: [usize; 0], } @@ -102,14 +102,14 @@ struct NonZeroSizedWithConst { #[derive(Debug)] #[repr(C)] -struct OtherAttributesDerive { +struct AlsoADeriveAttribute { field: i32, last: [usize; 0], } #[must_use] #[repr(C)] -struct OtherAttributesMustUse { +struct AlsoAnotherAttribute { field: i32, last: [usize; 0], } diff --git a/tests/ui/trailing_zero_sized_array_without_repr.stderr b/tests/ui/trailing_zero_sized_array_without_repr.stderr index 54b36ec6cec..e5714386c8b 100644 --- a/tests/ui/trailing_zero_sized_array_without_repr.stderr +++ b/tests/ui/trailing_zero_sized_array_without_repr.stderr @@ -35,7 +35,7 @@ error: trailing zero-sized array in a struct which is not marked with a `repr` a --> $DIR/trailing_zero_sized_array_without_repr.rs:20:1 | LL | / #[must_use] -LL | | struct OnlyAnotherAttributeMustUse { +LL | | struct OnlyAnotherAttribute { LL | | field: i32, LL | | last: [usize; 0], LL | | } @@ -46,7 +46,7 @@ LL | | } error: trailing zero-sized array in a struct which is not marked with a `repr` attribute --> $DIR/trailing_zero_sized_array_without_repr.rs:29:1 | -LL | / struct OnlyAnotherAttributeDerive { +LL | / struct OnlyADeriveAttribute { LL | | field: i32, LL | | last: [usize; 0], LL | | }