summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-74086.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/typeck/issue-74086.stderr')
-rw-r--r--src/test/ui/typeck/issue-74086.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/typeck/issue-74086.stderr b/src/test/ui/typeck/issue-74086.stderr
new file mode 100644
index 000000000..95ebf9a90
--- /dev/null
+++ b/src/test/ui/typeck/issue-74086.stderr
@@ -0,0 +1,15 @@
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
+ --> $DIR/issue-74086.rs:2:20
+ |
+LL | static BUG: fn(_) -> u8 = |_| 8;
+ | ^ not allowed in type signatures
+
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
+ --> $DIR/issue-74086.rs:2:20
+ |
+LL | static BUG: fn(_) -> u8 = |_| 8;
+ | ^ not allowed in type signatures
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0121`.