mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Clean up and fix inner item collection a bit
This commit is contained in:
parent
3b50b0b2b6
commit
d6fd7809b0
2 changed files with 38 additions and 7 deletions
|
@ -374,11 +374,17 @@ fn cursed_inner_items() {
|
|||
|
||||
impl En {
|
||||
fn assoc() {
|
||||
trait InnerTrait {}
|
||||
struct InnerStruct {}
|
||||
impl InnerTrait for InnerStruct {}
|
||||
trait InnerTrait<T = [u8; { fn f() {} }]> {}
|
||||
struct InnerStruct<T = [u8; { fn f() {} }]> {}
|
||||
impl<T = [u8; { fn f() {} }]> InnerTrait for InnerStruct {}
|
||||
}
|
||||
}
|
||||
|
||||
trait Tr<T = [u8; { fn f() {} }]> {
|
||||
type AssocTy = [u8; { fn f() {} }];
|
||||
|
||||
const AssocConst: [u8; { fn f() {} }];
|
||||
}
|
||||
",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue