Better testcase names

This commit is contained in:
Nathaniel Hamovitz 2021-10-18 04:59:03 -07:00
parent d25b4eeefb
commit ab9fa25e82
2 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ struct GenericArrayType<T> {
}
#[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],
}

View file

@ -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 | | }