rust/tests/ui/async-await/async-closures/pretty-async-fn-opaque.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
585 B
Plaintext
Raw Permalink Normal View History

2024-11-11 17:42:35 +00:00
error[E0308]: mismatched types
2024-11-06 17:53:59 +00:00
--> $DIR/pretty-async-fn-opaque.rs:8:18
2024-11-11 17:42:35 +00:00
|
LL | fn produce() -> impl AsyncFnMut() -> &'static str {
| --------------------------------- the found opaque type
...
LL | let x: i32 = produce();
| --- ^^^^^^^^^ expected `i32`, found opaque type
| |
| expected due to this
|
= note: expected type `i32`
found opaque type `impl AsyncFnMut() -> &'static str`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.