Debian Codegraph @

tests/ui/associated-type.rs

raw symbols SCIP
1 use inherent::inherent;
2
3 pub trait Trait {
4 type Assoc;
5 fn f() -> Self::Assoc;
6 }
7
8 pub struct Struct;
9
10 #[inherent]
11 impl Trait for Struct {
12 type Assoc = ();
13
14 // TODO: https://github.com/dtolnay/inherent/issues/15
15 fn f() -> Self::Assoc {}
16 }
17
18 fn main() {}