Sign in
android
/
toolchain
/
rustc
/
5bd94c128c5702589f742e958fb8ae82646357c9
/
.
/
src
/
test
/
ui
/
associated-consts
/
associated-const-impl-wrong-lifetime.rs
blob: 08260ec8f4d6318a5b92403be35ecaa5c4f0f8e9 [
file
] [
log
] [
blame
]
trait
Foo
{
const
NAME
:
&
'
static
str
;
}
impl
<
'a> Foo for &'
a
()
{
const
NAME
:
&
'
a str
=
"unit"
;
//~^ ERROR mismatched types [E0308]
}
fn
main
()
{}