Puzzle 10X Marks the Spot
 fn​ ​main​() {
 if​ ​'X'​ == ​'Χ'​ {
  println!(​"It matches!"​);
  } ​else​ {
  println!(​"It doesn't match."​);
  }
 }

Guess the Output

images/aside-icons/important.png

Try to guess what the output is before moving to the next page.

images/hline.png

The program will display the following output:

 It doesn't match.
images/hline.png

Discussion

Unicode allows for homoglyphs, which are very similar or identical characters that can be encoded in different ways. ...

Get Rust Brain Teasers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.