Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
constant-in-expr-inherent-1.rs
blob: 9f0c60967efb28d090a611a95400f3508d96758c [
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
()
{
}