summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/issue-18118-2.rs
blob: f712a2eedb7e9cdb095ad83c20fb752ee11ba689 (plain)
1
2
3
4
5
6
pub fn main() {
    const z: &'static isize = {
        static p: isize = 3;
        &p //~ ERROR constants cannot refer to statics
    };
}