Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- 'a: while{true && break 'a == 10} {} 1
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- warning: unreachable expression
- --> src/main.rs:5:39
- |
- 5 | 'a: while{true && break 'a == 10} {} 1
- | ^^
- |
- = note: #[warn(unreachable_code)] on by default
- error[E0277]: the trait bound `(): std::cmp::PartialEq<i32>` is not satisfied
- --> src/main.rs:5:36
- |
- 5 | 'a: while{true && break 'a == 10} {} 1
- | ^^ can't compare `()` with `i32`
- |
- = help: the trait `std::cmp::PartialEq<i32>` is not implemented for `()`
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment