summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/constant.rs
blob: 47f0eadf99c4d81d50e1e76b945b24a7daeab8dc (plain)
1
2
3
4
5
6
7
8
9
10
// Test that MIR borrowck and NLL analysis can handle constants of
// arbitrary types without ICEs.

// check-pass

const HI: &str = "hi";

fn main() {
    assert_eq!(HI, "hi");
}