Skip to content

Instantly share code, notes, and snippets.

@erickt
Created May 13, 2012 17:30
Show Gist options
  • Save erickt/2689394 to your computer and use it in GitHub Desktop.
Save erickt/2689394 to your computer and use it in GitHub Desktop.
#[link(name = "a", vers = "0.0")];
#[crate_type = "lib"];
iface i<T> { }
fn f<T>() -> i<T> {
impl <T> of i<T> for () { }
() as i::<T>
}
use a;
fn main() {
a::f::<()>();
}
./run-rustc a.rs
warning: no debug symbols in executable (-arch x86_64)
./run-rustc b.rs
rust: upcall fail 'lookup_item: id not found: 13', /Users/etryzelaar/Projects/rust/rust/src/rustc/metadata/decoder.rs:94
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: 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', /Users/etryzelaar/Projects/rust/rust/src/rustc/driver/rustc.rs:248
rust: domain main @0x103000010 root task failed
rust: upcall fail 'killed', /Users/etryzelaar/Projects/rust/rust/src/libcore/task.rs:454
make: *** [all] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment