Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- "oop bad".chars().fold(|_| true)
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error[E0061]: this function takes 2 parameters but 1 parameter was supplied
- --> src/main.rs:6:27
- |
- 6 | "oop bad".chars().fold(|_| true)
- | ^^^^ expected 2 parameters
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0061`.
- 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