blob: 9bb546ab393b13ad0466ee22f82ebddf2ede1e12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 }
}
}
}
|