Guest User

Untitled

a guest
May 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. 'a: while{true && break 'a == 10} {} 1
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. warning: unreachable expression
  11. --> src/main.rs:5:39
  12. |
  13. 5 | 'a: while{true && break 'a == 10} {} 1
  14. | ^^
  15. |
  16. = note: #[warn(unreachable_code)] on by default
  17.  
  18. error[E0277]: the trait bound `(): std::cmp::PartialEq<i32>` is not satisfied
  19. --> src/main.rs:5:36
  20. |
  21. 5 | 'a: while{true && break 'a == 10} {} 1
  22. | ^^ can't compare `()` with `i32`
  23. |
  24. = help: the trait `std::cmp::PartialEq<i32>` is not implemented for `()`
  25.  
  26. error: aborting due to previous error
  27.  
  28. For more information about this error, try `rustc --explain E0277`.
  29. error: Could not compile `playground`.
  30.  
  31. To learn more, run the command again with --verbose.
  32.  
  33. */
  34.  
  35. /* ~~~~=== stdout ===~~~~
  36.  
  37. */
Add Comment
Please, Sign In to add comment