summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/fn-const-param-infer.full.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-generics/fn-const-param-infer.full.stderr')
-rw-r--r--src/test/ui/const-generics/fn-const-param-infer.full.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/fn-const-param-infer.full.stderr b/src/test/ui/const-generics/fn-const-param-infer.full.stderr
new file mode 100644
index 000000000..2d66a1923
--- /dev/null
+++ b/src/test/ui/const-generics/fn-const-param-infer.full.stderr
@@ -0,0 +1,9 @@
+error[E0741]: using function pointers as const generic parameters is forbidden
+ --> $DIR/fn-const-param-infer.rs:6:25
+ |
+LL | struct Checked<const F: fn(usize) -> bool>;
+ | ^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0741`.