]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-local-borrow.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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 }