blob: 2bc40fcb32783b7dd32b50fd282cb21813fb92fa (
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
// compile-pass
const HI: &str = "hi";
fn main() {
assert_eq!(HI, "hi");
}
|