rust/tests/ui/rfcs/rfc-0000-never_patterns/120240-async-fn-never-arg.stderr

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

13 lines
389 B
Plaintext
Raw Normal View History

2024-01-18 21:14:16 +01:00
error[E0308]: mismatched types
--> $DIR/120240-async-fn-never-arg.rs:11:36
|
LL | async fn async_never(!: Void) -> ! {} // gives an error
| ^^ expected `!`, found `()`
|
= note: expected type `!`
found unit type `()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.