]> git.lizzy.rs Git - rust.git/blob - tests/ui/return/return-from-diverging.stderr
Bless tests after rebase
[rust.git] / tests / ui / return / return-from-diverging.stderr
1 error[E0308]: mismatched types
2   --> $DIR/return-from-diverging.rs:4:12
3    |
4 LL | fn fail() -> ! {
5    |              - expected `!` because of return type
6 LL |     return "wow";
7    |            ^^^^^ expected `!`, found `&str`
8    |
9    = note:   expected type `!`
10            found reference `&'static str`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.