]> git.lizzy.rs Git - rust.git/blob - tests/ui/return/return-from-diverging.rs
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[rust.git] / tests / ui / return / return-from-diverging.rs
1 // Test that return another type in place of ! raises a type mismatch.
2
3 fn fail() -> ! {
4     return "wow"; //~ ERROR mismatched types
5 }
6
7 fn main() {
8 }