2017-07-26 23:51:09 -05:00
|
|
|
error: unreachable expression
|
2017-11-08 16:46:15 -06:00
|
|
|
--> $DIR/expr_unary.rs:19:28
|
2017-07-26 23:51:09 -05:00
|
|
|
|
|
2017-11-08 16:46:15 -06:00
|
|
|
19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable
|
2017-07-26 23:51:09 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_unary.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-11-08 16:46:15 -06:00
|
|
|
error: cannot coerce `{integer}` to !
|
|
|
|
--> $DIR/expr_unary.rs:19:28
|
|
|
|
|
|
|
|
|
19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_unary.rs:15:9
|
|
|
|
|
|
|
|
|
15 | #![deny(coerce_never)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #46325 <https://github.com/rust-lang/rust/issues/46325>
|
|
|
|
|
2017-05-27 14:34:59 -05:00
|
|
|
error[E0600]: cannot apply unary operator `!` to type `!`
|
2017-11-08 16:46:15 -06:00
|
|
|
--> $DIR/expr_unary.rs:19:16
|
2017-03-21 08:41:41 -05:00
|
|
|
|
|
2017-11-08 16:46:15 -06:00
|
|
|
19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable
|
2017-03-21 08:41:41 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-11-08 16:46:15 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2017-03-21 08:41:41 -05:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0600"
|