2017-07-27 04:51:09 +00:00
|
|
|
error: unreachable expression
|
2017-11-08 22:46:15 +00:00
|
|
|
--> $DIR/expr_unary.rs:19:28
|
2017-07-27 04:51:09 +00:00
|
|
|
|
|
2017-11-08 22:46:15 +00:00
|
|
|
19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable
|
2017-07-27 04:51:09 +00:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/expr_unary.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_code)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-11-08 22:46:15 +00: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 19:34:59 +00:00
|
|
|
error[E0600]: cannot apply unary operator `!` to type `!`
|
2017-11-08 22:46:15 +00:00
|
|
|
--> $DIR/expr_unary.rs:19:16
|
2017-03-21 13:41:41 +00:00
|
|
|
|
|
2017-11-08 22:46:15 +00:00
|
|
|
19 | let x: ! = ! { return; 22 }; //~ ERROR unreachable
|
2017-03-21 13:41:41 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-11-08 22:46:15 +00:00
|
|
|
error: aborting due to 3 previous errors
|
2017-03-21 13:41:41 +00:00
|
|
|
|