Move const-eval/stable-metric ui tests

This commit is contained in:
Bryan Garza 2023-01-17 22:35:05 +00:00
parent 1bbd655888
commit bdb815a22a
9 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,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<()>,
}