mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Merge #8853
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:
commit
ef6df1d994
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue