mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Extra test for #2311
This commit is contained in:
parent
cd31b7cf5c
commit
3c011aab74
10
src/test/run-pass/issue-2311-2.rs
Normal file
10
src/test/run-pass/issue-2311-2.rs
Normal file
@ -0,0 +1,10 @@
|
||||
iface clam<A: copy> { }
|
||||
class foo<A: copy> {
|
||||
let x: A;
|
||||
new(b: A) { self.x = b; }
|
||||
fn bar<B,C:clam<A>>(c: C) -> B {
|
||||
fail;
|
||||
}
|
||||
}
|
||||
|
||||
fn main() { }
|
Loading…
Reference in New Issue
Block a user