Created
June 26, 2013 00:50
-
-
Save anonymous/5863837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| fn main() { | |
| let i = str::as_bytes("Hello, world!"); | |
| println(fmt!("%?", i)); | |
| } | |
| Errors: | |
| MCC_1.rs:26:12: 26:43 error: this function takes 2 parameters but 1 parameter was supplied | |
| MCC_1.rs:26 let i = str::as_bytes("Hello, world!"); | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| MCC_1.rs:28:17: 28:21 error: internal compiler error: Autoderef but type not derefable: [type error] | |
| MCC_1.rs:28 println(fmt!("%?", i)); | |
| ^~~~ | |
| note: in expansion of fmt! | |
| MCC_1.rs:28:12: 28:26 note: expansion site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment