2017-12-08 18:07:23 +00:00
|
|
|
// Test that MIR borrowck and NLL analysis can handle constants of
|
|
|
|
// arbitrary types without ICEs.
|
|
|
|
|
2020-01-23 00:00:00 +00:00
|
|
|
// check-pass
|
2017-12-08 18:07:23 +00:00
|
|
|
|
|
|
|
const HI: &str = "hi";
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(HI, "hi");
|
|
|
|
}
|