Add a test for issue #2312
This commit is contained in:
parent
bd9d5e50be
commit
03330baf9c
11
src/test/run-pass/issue-2312.rs
Normal file
11
src/test/run-pass/issue-2312.rs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Testing that the B's are resolved
|
||||||
|
|
||||||
|
trait clam<A> { }
|
||||||
|
|
||||||
|
enum foo = int;
|
||||||
|
|
||||||
|
impl foo {
|
||||||
|
fn bar<B,C:clam<B>>(c: C) -> B { fail; }
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() { }
|
Loading…
Reference in New Issue
Block a user