about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/wrong_self_convention2.rs4
1 files changed, 4 insertions, 0 deletions
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 @@ mod issue7179 {
         // lint
         fn from_be_self(self) -> Self;
     }
+
+    trait Foo: Sized {
+        fn as_byte_slice(slice: &[Self]) -> &[u8];
+    }
 }