Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
associated-const
/
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
()
{}