summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/type-placeholder-fn-in-const.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/typeck/type-placeholder-fn-in-const.stderr')
-rw-r--r--src/test/ui/typeck/type-placeholder-fn-in-const.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/typeck/type-placeholder-fn-in-const.stderr b/src/test/ui/typeck/type-placeholder-fn-in-const.stderr
new file mode 100644
index 000000000..e7b2e554a
--- /dev/null
+++ b/src/test/ui/typeck/type-placeholder-fn-in-const.stderr
@@ -0,0 +1,21 @@
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
+ --> $DIR/type-placeholder-fn-in-const.rs:4:25
+ |
+LL | const TEST: fn() -> _;
+ | ^ not allowed in type signatures
+
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
+ --> $DIR/type-placeholder-fn-in-const.rs:4:25
+ |
+LL | const TEST: fn() -> _;
+ | ^ not allowed in type signatures
+
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
+ --> $DIR/type-placeholder-fn-in-const.rs:10:25
+ |
+LL | const TEST: fn() -> _ = 42;
+ | ^ not allowed in type signatures
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0121`.