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