☰
Debian Codegraph
@
1.0.13-1
/
/
tests
/
ui
/
associated-type.rs
☽
☼
tests/ui/associated-type.rs
code
plain
raw
symbols
SCIP
MIT
or
Apache-2.0
2019-2025 David Tolnay <
[email protected]
>
debian/copyright
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
() {}