Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- struct S { i: i32 }; impl S { fn foo(&S { i }: Self) { print!("{} ", i); } (S { i: 5 }).foo()
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error: incorrect close delimiter: `)`
- --> src/main.rs:6:6
- |
- 6 | });
- | ^
- |
- note: unclosed delimiter
- --> src/main.rs:4:22
- |
- 4 | println!("{:?}", {
- | ^
- error: expected one of `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `(`
- --> src/main.rs:5:84
- |
- 5 | struct S { i: i32 }; impl S { fn foo(&S { i }: Self) { print!("{} ", i); } (S { i: 5 }).foo()
- | ^ expected one of 9 possible tokens here
- error: expected one of `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `)`
- --> src/main.rs:5:95
- |
- 5 | struct S { i: i32 }; impl S { fn foo(&S { i }: Self) { print!("{} ", i); } (S { i: 5 }).foo()
- | ^ expected one of 9 possible tokens here
- error: aborting due to 3 previous errors
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment