]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/constant.rs
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, r=Mark-Simulacrum
[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 // check-pass
5
6 const HI: &str = "hi";
7
8 fn main() {
9     assert_eq!(HI, "hi");
10 }