diff --git a/tests/ui/wrong_self_convention2.rs b/tests/ui/wrong_self_convention2.rs index b2c6503de499..3a72174d03d6 100644 --- a/tests/ui/wrong_self_convention2.rs +++ b/tests/ui/wrong_self_convention2.rs @@ -64,4 +64,8 @@ mod issue7179 { // lint fn from_be_self(self) -> Self; } + + trait Foo: Sized { + fn as_byte_slice(slice: &[Self]) -> &[u8]; + } }