Sign in
fuchsia
/
third_party
/
rust
/
3bee49f42b6dfb039d2a8e59e5181e26531c3c11
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
constant-in-expr-inherent-1.rs
blob: 058ebaee9e512cae26f8fb172ae9468d09783d30 [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
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
()
{
}