summaryrefslogtreecommitdiffstats
path: root/tests/ui/inline-const/elided-lifetime-being-infer-vars.rs
blob: 5661db4a2530dafa64c5d12cdca07f181052a2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

#![feature(inline_const)]

fn main() {
    let _my_usize = const {
        let a = 10_usize;
        let b: &'_ usize = &a;
        *b
    };
}