diff options
Diffstat (limited to 'tests/ui/consts/issue-64662.rs')
-rw-r--r-- | tests/ui/consts/issue-64662.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-64662.rs b/tests/ui/consts/issue-64662.rs new file mode 100644 index 000000000..e3a8c8583 --- /dev/null +++ b/tests/ui/consts/issue-64662.rs @@ -0,0 +1,10 @@ +enum Foo { + A = foo(), //~ ERROR: type annotations needed + B = foo(), //~ ERROR: type annotations needed +} + +const fn foo<T>() -> isize { + 0 +} + +fn main() {} |