about summary refs log tree commit diff
path: root/tests/ui/return/tail-expr-if-as-return.stderr
blob: 2631f1e426ded4fe48257236ef09df0644e45eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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`.