summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-68684.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/issue-68684.rs')
-rw-r--r--src/test/ui/consts/issue-68684.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/consts/issue-68684.rs b/src/test/ui/consts/issue-68684.rs
new file mode 100644
index 0000000..c98f199
--- /dev/null
+++ b/src/test/ui/consts/issue-68684.rs
@@ -0,0 +1,15 @@
1// check-pass
2
3enum _Enum {
4 A(),
5}
6
7type _E = _Enum;
8
9const fn _a() -> _Enum {
10 _E::A()
11}
12
13const _A: _Enum = _a();
14
15fn main() {}