Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-expr-addr-operator.rs
blob: f5f459bbd3e991e11866aeaf50aefe955ffca604 [
file
] [
log
] [
blame
] [
edit
]
// 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
,
});
}