summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/apit-with-const-param.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/apit-with-const-param.rs')
-rw-r--r--src/test/ui/const-generics/apit-with-const-param.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/apit-with-const-param.rs b/src/test/ui/const-generics/apit-with-const-param.rs
new file mode 100644
index 000000000..2a04dc313
--- /dev/null
+++ b/src/test/ui/const-generics/apit-with-const-param.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+trait Trait {}
+
+fn f<const N: usize>(_: impl Trait) {}
+
+fn main() {}