Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
constant-in-expr-inherent-1.rs
blob: e3a8a5f58dfda6193981ce0cc20d0b41ca1b8b9c [
file
] [
log
] [
blame
]
struct
Foo
<
'a> { x: &'
a u32
}
impl
<
'a> Foo<'
a
>
{
const
C
:
&
'
a u32
=
&
22
;
}
fn
foo
<
'a>(_: &'
a u32
)
->
&
'
static
u32
{
<
Foo
<
'
a
>>::
C
//~ ERROR
}
fn
main
()
{
}