]> git.proxmox.com Git - rustc.git/blob - src/test/ui/return/return-from-diverging.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / 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`.