Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
consts
/
const-expr-addr-operator.rs
blob: 37bf24c2fbed1529bc0d464d2040dcc93def4280 [
file
] [
log
] [
blame
]
// Encountered while testing #44614.
// build-pass (FIXME(62277): could be check-pass?)
pub
fn
main
()
{
// Constant of generic type (int)
const
X
:
&
'
static
u32
=
&
22
;
assert_eq
!(
0
,
match
&
22
{
X
=>
0
,
_
=>
1
,
});
}