summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0434.rs
blob: db7037ee115e07bd1916dab0996a5e1681c20d58 (plain)
1
2
3
4
5
6
7
8
9
fn foo() {
    let y = 5;
    fn bar() -> u32 {
        y //~ ERROR E0434
    }
}

fn main () {
}