diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/fn/issue-80179.stderr (renamed from src/test/ui/fn/issue-80179.stderr) | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/fn/issue-80179.stderr b/tests/ui/fn/issue-80179.stderr index 2ca4ae982..f5d6c44db 100644 --- a/src/test/ui/fn/issue-80179.stderr +++ b/tests/ui/fn/issue-80179.stderr @@ -11,9 +11,11 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures --> $DIR/issue-80179.rs:18:25 | LL | fn returns_closure() -> _ { - | ^ not allowed in type signatures + | ^ + | | + | not allowed in type signatures + | help: replace with an appropriate return type: `impl Fn() -> i32` | - = 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 |