Guest User

Untitled

a guest
Jun 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #![feature(raw_identifiers)]
  2.  
  3. fn main() {
  4. println!("{:?}", {
  5. struct r#fn; impl r#fn { fn #fn(&self) {} } r#fn.r#fn();
  6. });
  7. }
  8.  
  9.  
  10. /* ~~~~=== stderr ===~~~~
  11. Compiling playground v0.0.1 (file:///playground)
  12. error: expected identifier, found `#`
  13. --> src/main.rs:5:38
  14. |
  15. 5 | struct r#fn; impl r#fn { fn #fn(&self) {} } r#fn.r#fn();
  16. | ^ expected identifier
  17.  
  18. error: aborting due to previous error
  19.  
  20. error: Could not compile `playground`.
  21.  
  22. To learn more, run the command again with --verbose.
  23.  
  24. */
  25.  
  26. /* ~~~~=== stdout ===~~~~
  27.  
  28. */
Add Comment
Please, Sign In to add comment