Files
rust/tests/ui/borrowck/borrowck-local-borrow.rs
2025-01-23 20:51:29 +08:00

10 lines
129 B
Rust

//@ run-fail
//@ error-pattern:panic 1
//@ needs-subprocess
fn main() {
let x = 2;
let y = &x;
panic!("panic 1");
}