Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
nll
/
issue-57280-1.rs
blob: f9cea42e7c4ccd32bdafce21c396ec0f1e209080 [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
trait
Foo
<
'
a
>
{
const
C
:
&
'
a u32
;
}
impl
<
'a, T> Foo<'
a
>
for
T
{
const
C
:
&
'
a u32
=
&
22
;
}
fn
foo
()
{
let
a
=
22
;
match
&
a
{
<()
as
Foo
<
'
static
>>::
C
=>
{
}
&
_
=>
{
}
}
}
fn
main
()
{}