Test case for issue 2380
This commit is contained in:
parent
8d7765be82
commit
b30daa6eef
2 changed files with 18 additions and 0 deletions
10
src/test/auxiliary/issue-2380.rs
Normal file
10
src/test/auxiliary/issue-2380.rs
Normal 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>
|
||||
}
|
||||
8
src/test/run-pass/issue-2380-b.rs
Normal file
8
src/test/run-pass/issue-2380-b.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// xfail-fast
|
||||
// aux-build:issue-2380.rs
|
||||
|
||||
use a;
|
||||
|
||||
fn main() {
|
||||
a::f::<()>();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue