Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- ~crate indexmap
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: `~` cannot be used as a unary operator
- --> src/main.rs:6:9
- |
- 6 | ~crate indexmap
- | ^ help: use `!` to perform bitwise negation
- error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `indexmap`
- --> src/main.rs:6:16
- |
- 6 | ~crate indexmap
- | ^^^^^^^^ expected one of 8 possible tokens here
- error[E0423]: expected value, found module `crate`
- --> src/main.rs:6:10
- |
- 6 | ~crate indexmap
- | ^^^^^ not a value
- error: aborting due to 3 previous errors
- For more information about this error, try `rustc --explain E0423`.
- 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