Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
constant-in-expr-trait-item-2.rs
blob: 73c4e577b05c087a16b4e7df73e3f5c6f22b185a [
file
] [
log
] [
blame
]
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
as
Foo
<
'
a
>>::
C
//~ ERROR
}
fn
main
()
{
}