summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issue-93647.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/issue-93647.rs')
-rw-r--r--src/test/ui/const-generics/issue-93647.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/issue-93647.rs b/src/test/ui/const-generics/issue-93647.rs
new file mode 100644
index 000000000..c1a6bf6e3
--- /dev/null
+++ b/src/test/ui/const-generics/issue-93647.rs
@@ -0,0 +1,6 @@
+struct X<const N: usize = {
+ (||1usize)()
+ //~^ ERROR cannot call
+}>;
+
+fn main() {}