Skip to content

Instantly share code, notes, and snippets.

Created June 26, 2013 00:50
Show Gist options
  • Select an option

  • Save anonymous/5863837 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/5863837 to your computer and use it in GitHub Desktop.
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