summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-87181/tuple-field.rs
blob: 00e3b460ecf3239fb67380d436cfc40be485c247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Bar<T> {
    bar: T
}

struct Foo(char, u16);
impl Foo {
    fn foo() { }
}

fn main() {
    let thing = Bar { bar: Foo };
    thing.bar.0;
    //~^ ERROR no field `0` on type `fn(char, u16) -> Foo {Foo}` [E0609]
}