Skip to content

Instantly share code, notes, and snippets.

@jeffs
Created January 14, 2021 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffs/711b175581cfb3e5bb8a16ae6ddf8a9a to your computer and use it in GitHub Desktop.
Save jeffs/711b175581cfb3e5bb8a16ae6ddf8a9a to your computer and use it in GitHub Desktop.
$ cargo check
Checking rust v0.1.0 (/Users/jeff/var/play/rust)
error[E0369]: cannot add `{integer}` to `&str`
--> src/main.rs:2:25
|
2 | println!("{}", "42" + 1);
| ---- ^ - {integer}
| |
| &str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment