]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/borrowck-local-borrow.rs
Rollup merge of #65551 - sinkuu:cstring_spec, r=sfackler
[rust.git] / src / test / run-fail / borrowck-local-borrow.rs
1 // error-pattern:panic 1
2
3 // revisions: migrate mir
4 //[mir]compile-flags: -Z borrowck=mir
5
6 fn main() {
7     let x = 2;
8     let y = &x;
9     panic!("panic 1");
10 }