mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
Test case for issue 2380
This commit is contained in:
@@ -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>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// xfail-fast
|
||||
// aux-build:issue-2380.rs
|
||||
|
||||
use a;
|
||||
|
||||
fn main() {
|
||||
a::f::<()>();
|
||||
}
|
||||
Reference in New Issue
Block a user