rust/tests/ui/issues/auxiliary/issue-3136-a.rs
2023-01-11 09:32:08 +00:00

15 lines
235 B
Rust

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