]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/borrowck-local-borrow.rs
Auto merge of #68506 - tmandry:rollup-kz9d33v, r=tmandry
[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 }