]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-72590-type-error-sized.stderr
remove [async output] from impl Future
[rust.git] / src / test / ui / async-await / issue-72590-type-error-sized.stderr
1 error[E0412]: cannot find type `Nonexistent` in this scope
2   --> $DIR/issue-72590-type-error-sized.rs:6:10
3    |
4 LL |     foo: Nonexistent,
5    |          ^^^^^^^^^^^ not found in this scope
6
7 error[E0412]: cannot find type `Missing` in this scope
8   --> $DIR/issue-72590-type-error-sized.rs:11:11
9    |
10 LL |     test: Missing
11    |           ^^^^^^^ not found in this scope
12
13 error[E0277]: the size for values of type `str` cannot be known at compilation time
14   --> $DIR/issue-72590-type-error-sized.rs:15:19
15    |
16 LL |     async fn frob(self) {}
17    |                   ^^^^ doesn't have a size known at compile-time
18    |
19    = help: within `Foo`, the trait `Sized` is not implemented for `str`
20 note: required because it appears within the type `Foo`
21   --> $DIR/issue-72590-type-error-sized.rs:5:8
22    |
23 LL | struct Foo {
24    |        ^^^
25    = help: unsized fn params are gated as an unstable feature
26 help: function arguments must have a statically known size, borrowed types always have a known size
27    |
28 LL |     async fn frob(&self) {}
29    |                   +
30
31 error: aborting due to 3 previous errors
32
33 Some errors have detailed explanations: E0277, E0412.
34 For more information about an error, try `rustc --explain E0277`.