Skip to content

Commit bdb815a

Browse files
committed
Move const-eval/stable-metric ui tests
1 parent 1bbd655 commit bdb815a

File tree

9 files changed

+19
-0
lines changed

9 files changed

+19
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// check-pass
2+
//
3+
// Exercising an edge case which was found during Stage 2 compilation.
4+
// Compilation would fail for this code when running the `CtfeLimit`
5+
// MirPass (specifically when looking up the dominators).
6+
#![crate_type="lib"]
7+
8+
const DUMMY: Expr = Expr::Path(ExprPath {
9+
attrs: Vec::new(),
10+
path: Vec::new(),
11+
});
12+
13+
pub enum Expr {
14+
Path(ExprPath),
15+
}
16+
pub struct ExprPath {
17+
pub attrs: Vec<()>,
18+
pub path: Vec<()>,
19+
}

0 commit comments

Comments
 (0)