Skip to content

Instantly share code, notes, and snippets.

@mcgirr
Created April 4, 2015 22:20
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcgirr/3ea646f4f2f68460ff0e to your computer and use it in GitHub Desktop.
Save mcgirr/3ea646f4f2f68460ff0e to your computer and use it in GitHub Desktop.
Print the martini Emoji 🍸 in the Rust programming language from a Unicode character code
fn main ()
{
let martini_emoji = '\u{1F378}';
println!("{}", martini_emoji);
}
@mcgirr
Copy link
Author

mcgirr commented Apr 4, 2015

works with rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)

@sami2020pro
Copy link

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment