Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
user-annotations
/
constant-in-expr-trait-item-3.rs
blob: 567e31ef936321b7d7d0b10a84730e11cfedbb86 [
file
] [
log
] [
blame
] [
edit
]
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
()
{
}