summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/issue-80179.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/fn/issue-80179.rs (renamed from src/test/ui/fn/issue-80179.rs)6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/fn/issue-80179.rs b/tests/ui/fn/issue-80179.rs
index fcef6f1b6..35e39bebb 100644
--- a/src/test/ui/fn/issue-80179.rs
+++ b/tests/ui/fn/issue-80179.rs
@@ -18,9 +18,9 @@ fn returns_fn_ptr() -> _ {
fn returns_closure() -> _ {
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types [E0121]
//~| NOTE 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
+//~| HELP replace with an appropriate return type
+//~| SUGGESTION impl Fn() -> i32
+//~| NOTE for more information on `Fn` traits and closure types
|| 0
}