summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/stable-metric/dominators-edge-case.rs
blob: 0b0f361809f207ebe75e20766fe5731da652b398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// check-pass
//
// Exercising an edge case which was found during Stage 2 compilation.
// Compilation would fail for this code when running the `CtfeLimit`
// MirPass (specifically when looking up the dominators).
#![crate_type="lib"]

const DUMMY: Expr = Expr::Path(ExprPath {
    attrs: Vec::new(),
    path: Vec::new(),
});

pub enum Expr {
    Path(ExprPath),
}
pub struct ExprPath {
    pub attrs: Vec<()>,
    pub path: Vec<()>,
}