2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-01-17 16:35:05 -06:00
|
|
|
//
|
|
|
|
// 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<()>,
|
|
|
|
}
|