Skip to content

Commit 58359b2

Browse files
committed
Auto merge of rust-lang#7222 - ThibsG:WrongSelfTest, r=Manishearth
Add sized trait for `wrong_self_convention` lint test This has been solved a few hours ago by rust-lang#7215 😉 Fixes: rust-lang#7219 changelog: none
2 parents 10db5a6 + 18c7029 commit 58359b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ui/wrong_self_convention2.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,8 @@ mod issue7179 {
6464
// lint
6565
fn from_be_self(self) -> Self;
6666
}
67+
68+
trait Foo: Sized {
69+
fn as_byte_slice(slice: &[Self]) -> &[u8];
70+
}
6771
}

0 commit comments

Comments
 (0)