blob: b1ea2c906da88df93629fc77d6ab8ebacbfde79a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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");
}
|