Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-consts
/
mismatched_impl_ty_2.rs
blob: c6cbc69503d8837cbe3dfd6d9abe1a040d1769e7 [
file
] [
log
] [
blame
]
//@ run-pass
trait
Trait
{
const
ASSOC
:
fn
(&
'
static
u32
);
}
impl
Trait
for
()
{
const
ASSOC
:
for
<
'a> fn(&'
a u32
)
=
|
_
|
();
}
fn
main
()
{
let
_
=
<()
as
Trait
>::
ASSOC
;
}