Sign in
fuchsia
/
third_party
/
rust
/
3b4b9a4247febf0e71f3480fd34775850b77fea4
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
constant-in-expr-trait-item-3.rs
blob: f83ae2438e6d5dd1fffa6a9eeadd96c0afb575e9 [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
trait
Foo
<
'
a
>
{
const
C
:
&
'
a u32
;
}
impl
<
'a, T> Foo<'
a
>
for
T
{
const
C
:
&
'
a u32
=
&
22
;
}
fn
foo
<
'a, T: Foo<'
a
>>()
->
&
'
static
u32
{
T
::
C
//~ ERROR
}
fn
main
()
{
}