Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- &5usize == 5usize
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0277]: the trait bound `&usize: std::cmp::PartialEq<usize>` is not satisfied
- --> src/main.rs:5:17
- |
- 5 | &5usize == 5usize
- | ^^ can't compare `&usize` with `usize`
- |
- = help: the trait `std::cmp::PartialEq<usize>` is not implemented for `&usize`
- 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