Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- fn foo<'a>() -> &'a str { let string = format!("{}{}", "foo", "bar); &string }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: unterminated double quote string
- --> src/main.rs:6:71
- |
- 6 | fn foo<'a>() -> &'a str { let string = format!("{}{}", "foo", "bar); &string }
- | _______________________________________________________________________^
- 7 | | });
- 8 | | }
- | |__^
- 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