summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-68684.rs
blob: c98f199b60e498c8a928942470c96bce19dc5b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

enum _Enum {
    A(),
}

type _E = _Enum;

const fn _a() -> _Enum {
    _E::A()
}

const _A: _Enum = _a();

fn main() {}