rust/tests/ui/consts/issue-68684.rs
2024-02-16 20:02:50 +00:00

16 lines
137 B
Rust

//@ check-pass
enum _Enum {
A(),
}
type _E = _Enum;
const fn _a() -> _Enum {
_E::A()
}
const _A: _Enum = _a();
fn main() {}