summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/issue-18118.rs
blob: f58a3de281f1ae1123e7ec98c7057e050f72c947 (plain)
1
2
3
4
5
6
pub fn main() {
    const z: &'static isize = {
        let p = 3;
        &p //~ ERROR `p` does not live long enough
    };
}