Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
nll
/
constant.rs
blob: b1ea2c906da88df93629fc77d6ab8ebacbfde79a [
file
] [
log
] [
blame
]
// Test that MIR borrowck and NLL analysis can handle constants of
// arbitrary types without ICEs.
// compile-flags:-Zborrowck=mir
// build-pass (FIXME(62277): could be check-pass?)
const
HI
:
&
str
=
"hi"
;
fn
main
()
{
assert_eq
!(
HI
,
"hi"
);
}