summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-fn-trait-from-fn-kw.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /tests/ui/parser/recover-fn-trait-from-fn-kw.stderr
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/parser/recover-fn-trait-from-fn-kw.stderr')
-rw-r--r--tests/ui/parser/recover-fn-trait-from-fn-kw.stderr48
1 files changed, 0 insertions, 48 deletions
diff --git a/tests/ui/parser/recover-fn-trait-from-fn-kw.stderr b/tests/ui/parser/recover-fn-trait-from-fn-kw.stderr
deleted file mode 100644
index 3681a796c..000000000
--- a/tests/ui/parser/recover-fn-trait-from-fn-kw.stderr
+++ /dev/null
@@ -1,48 +0,0 @@
-error: expected identifier, found keyword `fn`
- --> $DIR/recover-fn-trait-from-fn-kw.rs:1:16
- |
-LL | fn foo(_: impl fn() -> i32) {}
- | ^^
- |
-help: use `Fn` to refer to the trait
- |
-LL | fn foo(_: impl Fn() -> i32) {}
- | ~~
-
-error: expected identifier, found keyword `fn`
- --> $DIR/recover-fn-trait-from-fn-kw.rs:4:12
- |
-LL | fn foo2<T: fn(i32)>(_: T) {}
- | ^^
- |
-help: use `Fn` to refer to the trait
- |
-LL | fn foo2<T: Fn(i32)>(_: T) {}
- | ~~
-
-error[E0308]: mismatched types
- --> $DIR/recover-fn-trait-from-fn-kw.rs:8:12
- |
-LL | foo(|| ());
- | ^^ expected `i32`, found `()`
-
-error[E0631]: type mismatch in closure arguments
- --> $DIR/recover-fn-trait-from-fn-kw.rs:10:5
- |
-LL | foo2(|_: ()| {});
- | ^^^^ ------- found signature defined here
- | |
- | expected due to this
- |
- = note: expected closure signature `fn(i32) -> _`
- found closure signature `fn(()) -> _`
-note: required by a bound in `foo2`
- --> $DIR/recover-fn-trait-from-fn-kw.rs:4:12
- |
-LL | fn foo2<T: fn(i32)>(_: T) {}
- | ^^^^^^^ required by this bound in `foo2`
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0308, E0631.
-For more information about an error, try `rustc --explain E0308`.