diff options
| author | bors <bors@rust-lang.org> | 2021-05-13 23:01:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-13 23:01:22 +0000 |
| commit | 58359b2d2d34b38b62b8ea1b96b40686f689201d (patch) | |
| tree | 621955ba3d02c4564d33047de02e4c4d3eca4287 | |
| parent | 10db5a6064efa345e7334cbb1671ee99e33361d5 (diff) | |
| parent | 18c702955b6c557fe864d73964c472f9455c2208 (diff) | |
| download | rust-58359b2d2d34b38b62b8ea1b96b40686f689201d.tar.gz rust-58359b2d2d34b38b62b8ea1b96b40686f689201d.zip | |
Auto merge of #7222 - ThibsG:WrongSelfTest, r=Manishearth
Add sized trait for `wrong_self_convention` lint test This has been solved a few hours ago by #7215 😉 Fixes: #7219 changelog: none
| -rw-r--r-- | tests/ui/wrong_self_convention2.rs | 4 |
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]; + } } |
