Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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"
);
}