Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- println!("{: 5>}", 42);
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: invalid format string: expected `'}'`, found `'5'`
- --> src/main.rs:6:22
- |
- 6 | println!("{: 5>}", 42);
- | - ^ expected `}` in format string
- | |
- | because of this opening brace
- |
- = note: if you intended to print `{`, you can escape it using `{{`
- 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