]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/constant.rs
fix merge conflicts
[rust.git] / src / test / ui / nll / constant.rs
1 // Test that MIR borrowck and NLL analysis can handle constants of
2 // arbitrary types without ICEs.
3
4 // compile-flags:-Zborrowck=mir
5 // compile-pass
6
7 const HI: &str = "hi";
8
9 fn main() {
10     assert_eq!(HI, "hi");
11 }