blob: 515b3bc09f0763fa46b5832b69ae4c4350cca432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#[derive(Clone)]
struct InGroup<F> {
it: It,
//~^ ERROR cannot find type `It` in this scope
f: F,
}
fn dates_in_year() -> impl Clone {
InGroup { f: |d| d }
//~^ ERROR missing field `it` in initializer of `InGroup<_>`
}
fn main() {}
|