Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
issue-33537.rs
blob: 71e3418f5558adcc82c01fb0b37603ace40c8c6e [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
const
fn
foo
()
->
*
const
i8
{
b
"foo"
as
*
const
_
as
*
const
i8
}
const
fn
bar
()
->
i32
{
*&{(
1
,
2
,
3
).
1
}
}
fn
main
()
{
assert_eq
!(
foo
(),
b
"foo"
as
*
const
_
as
*
const
i8
);
assert_eq
!(
bar
(),
2
);
}