rust/src/test/auxiliary/issue_3136_a.rs
2012-10-15 12:00:32 -07:00

16 lines
226 B
Rust

trait x {
fn use_x<T>();
}
enum y = ();
impl y:x {
fn use_x<T>() {
struct foo { //~ ERROR quux
i: ()
}
fn new_foo<T>(i: ()) -> foo {
foo { i: i }
}
}
}