Test case for issue 2380

This commit is contained in:
Tim Chevalier 2012-05-29 17:05:17 -07:00
parent 8d7765be82
commit b30daa6eef
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#[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>
}

View file

@ -0,0 +1,8 @@
// xfail-fast
// aux-build:issue-2380.rs
use a;
fn main() {
a::f::<()>();
}