summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-local-borrow.rs
blob: 0aaa4e4c6841cf20edf472782015ed9db5357456 (plain)
1
2
3
4
5
6
7
8
9
// run-fail
// error-pattern:panic 1
// ignore-emscripten no processes

fn main() {
    let x = 2;
    let y = &x;
    panic!("panic 1");
}