8853: Tag Self in impls as a TypeAlias r=matklad a=Veykril

bors r+
Fixes #4398

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
bors[bot] 2021-05-16 17:35:40 +00:00 committed by GitHub
commit ef6df1d994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -39,11 +39,11 @@ struct Foo {
pub y: i32,
}
trait Bar {
trait Bar where Self: {
fn bar(&self) -> i32;
}
impl Bar for Foo {
impl Bar for Foo where Self: {
fn bar(&self) -> i32 {
self.x
}