rust/tests/ui/return/tail-expr-if-as-return.stderr

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

13 lines
323 B
Plaintext
Raw Normal View History

2024-05-16 08:10:07 -05:00
error[E0308]: mismatched types
--> $DIR/tail-expr-if-as-return.rs:3:9
|
LL | / if true {
LL | | ""
| | ^^ expected `()`, found `&str`
LL | | }
| |_____- expected this to be `()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.