Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error: incorrect close delimiter: `}`
- --> src/main.rs:6:5
- |
- 6 | });
- | ^
- |
- note: unclosed delimiter
- --> src/main.rs:5:51
- |
- 5 | let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
- | ^
- error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
- --> src/main.rs:5:73
- |
- 5 | let x = Some(2); let y = Some(3); let z = (||{ Some(x? + y?) }(); z
- | ^ expected one of `)`, `,`, `.`, `?`, or an operator here
- error: aborting due to 2 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