Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created July 19, 2019 10:19
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 rust-play/0a345ee95be5db1a4983bfc08f268d71 to your computer and use it in GitHub Desktop.
Save rust-play/0a345ee95be5db1a4983bfc08f268d71 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
#![allow(unreachable_code)]
fn main() {
println!("{:?}", {
yep
});
}
/* ~~~~=== stderr ===~~~~
Compiling playground v0.0.1 (/playground)
error[E0425]: cannot find value `yep` in this scope
--> src/main.rs:6:9
|
6 | yep
| ^^^ not found in this scope
error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: Could not compile `playground`.
To learn more, run the command again with --verbose.
*/
/* ~~~~=== stdout ===~~~~
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment