Created
February 21, 2012 05:27
-
-
Save ashgti/1873955 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
iface foo<A> { | |
fn bar(a: A, b: A); | |
} | |
impl of foo<int> for int { | |
fn bar(a: int) { | |
// bad. | |
} | |
} |
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
$ rustc -v | |
rustc 0.1.1 | |
host: x86_64-apple-darwin | |
$ rustc failure.rs | |
failure.rs:6:1: 8:2 error: method `bar` has 1 parameters but the iface has 2 | |
failure.rs:6 fn bar(a: int) { | |
failure.rs:7 // bad. | |
failure.rs:8 } | |
failure.rs:1:0: 1:0 error: main function not found | |
failure.rs:1 iface foo<A> { | |
^ | |
error: aborting due to previous errors |
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
$ git log | |
102896897067960341c17dae75958e955c6d7cb2 | |
$ rustc failure.rs | |
error: internal compiler error unexpected failure | |
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues | |
$ RUST_LOG=rustc=0,::rt::backtrace rustc failure.rs | |
rust: upcall fail 'explicit failure', src/libcore/vec.rs:433 | |
0 librustrt.dylib 0x00000001024a0d1c __morestack + 9 | |
error: internal compiler error unexpected failure | |
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues | |
rust: upcall fail 'explicit failure', src/comp/driver/rustc.rs:184 | |
0 librustrt.dylib 0x00000001024a0d1c __morestack + 9 | |
rust: domain main @0x7fcb9181a000 root task failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment