summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issue-72590-type-error-sized.rs
blob: 00e098d43e073917e8a2a4e1062cf0ffb98d1050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Regression test for issue #72590
// Tests that we don't emit a spurious "size cannot be statically determined" error
// edition:2018

struct Foo {
    foo: Nonexistent, //~ ERROR cannot find
    other: str
}

struct Bar {
    test: Missing //~ ERROR cannot find
}

impl Foo {
    async fn frob(self) {} //~ ERROR the size
}

impl Bar {
    async fn myfn(self) {}
}

fn main() {}