]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-72590-type-error-sized.rs
Rollup merge of #107027 - GuillaumeGomez:rm-extra-removal, r=tmiasko
[rust.git] / tests / ui / async-await / issue-72590-type-error-sized.rs
1 // Regression test for issue #72590
2 // Tests that we don't emit a spurious "size cannot be statically determined" error
3 // edition:2018
4
5 struct Foo {
6     foo: Nonexistent, //~ ERROR cannot find
7     other: str
8 }
9
10 struct Bar {
11     test: Missing //~ ERROR cannot find
12 }
13
14 impl Foo {
15     async fn frob(self) {} //~ ERROR the size
16 }
17
18 impl Bar {
19     async fn myfn(self) {}
20 }
21
22 fn main() {}