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