Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- let v: &u8 = &0; let w: *const i8 = v.as_ptr().cast<i8>(); let y: &i8 = &*w; y
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: chained comparison operators require parentheses
- --> src/main.rs:6:60
- |
- 6 | let v: &u8 = &0; let w: *const i8 = v.as_ptr().cast<i8>(); let y: &i8 = &*w; y
- | ^^^^^
- |
- = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
- = help: or use `(...)` if you meant to specify fn arguments
- error: aborting due to previous error
- error: could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement