summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fn/issue-80179.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/fn/issue-80179.stderr')
-rw-r--r--src/test/ui/fn/issue-80179.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/fn/issue-80179.stderr b/src/test/ui/fn/issue-80179.stderr
new file mode 100644
index 000000000..2ca4ae982
--- /dev/null
+++ b/src/test/ui/fn/issue-80179.stderr
@@ -0,0 +1,21 @@
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
+ --> $DIR/issue-80179.rs:10:24
+ |
+LL | fn returns_fn_ptr() -> _ {
+ | ^
+ | |
+ | not allowed in type signatures
+ | help: replace with the correct return type: `fn() -> i32`
+
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
+ --> $DIR/issue-80179.rs:18:25
+ |
+LL | fn returns_closure() -> _ {
+ | ^ not allowed in type signatures
+ |
+ = help: consider using an `Fn`, `FnMut`, or `FnOnce` trait bound
+ = note: for more information on `Fn` traits and closure types, see https://doc.rust-lang.org/book/ch13-01-closures.html
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0121`.