Sign in
fuchsia
/
third_party
/
rust
/
846ea58cd5ae1c8d72e55dd6cf1ee35ffbca3d63
/
.
/
src
/
test
/
ui
/
nll
/
issue-57280-1.rs
blob: 356c477f1ba36f0ef97994fddc91203b83762447 [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
// compile-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
()
{}