]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-local-borrow.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / borrowck / borrowck-local-borrow.rs
1 // run-fail
2 // error-pattern:panic 1
3 // ignore-emscripten no processes
4
5 fn main() {
6     let x = 2;
7     let y = &x;
8     panic!("panic 1");
9 }