From 18c702955b6c557fe864d73964c472f9455c2208 Mon Sep 17 00:00:00 2001 From: ThibsG Date: Thu, 13 May 2021 23:28:40 +0200 Subject: [PATCH] Add sized trait for `wrong_self_convention` lint test --- tests/ui/wrong_self_convention2.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ui/wrong_self_convention2.rs b/tests/ui/wrong_self_convention2.rs index b2c6503de49..3a72174d03d 100644 --- a/tests/ui/wrong_self_convention2.rs +++ b/tests/ui/wrong_self_convention2.rs @@ -64,4 +64,8 @@ trait T { // lint fn from_be_self(self) -> Self; } + + trait Foo: Sized { + fn as_byte_slice(slice: &[Self]) -> &[u8]; + } }