Skip to content

Commit

Permalink
Auto merge of rust-lang#7222 - ThibsG:WrongSelfTest, r=Manishearth
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed May 13, 2021
2 parents 10db5a6 + 18c7029 commit 58359b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/wrong_self_convention2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ mod issue7179 {
// lint
fn from_be_self(self) -> Self;
}

trait Foo: Sized {
fn as_byte_slice(slice: &[Self]) -> &[u8];
}
}

0 comments on commit 58359b2

Please sign in to comment.