File: main-02-only-async.stderr

package info (click to toggle)
rust-actix-macros 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: makefile: 4
file content (14 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: the async keyword is missing from the function declaration
 --> $DIR/main-02-only-async.rs:2:1
  |
2 | fn main() {
  | ^^

error[E0601]: `main` function not found in crate `$CRATE`
 --> $DIR/main-02-only-async.rs:1:1
  |
1 | / #[actix_rt::main]
2 | | fn main() {
3 | |     futures_util::future::ready(()).await
4 | | }
  | |_^ consider adding a `main` function to `$DIR/tests/trybuild/main-02-only-async.rs`