1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 11:42:59 +01:00
actix-net/actix-macros/tests/trybuild/main-02-only-async.stderr
2020-04-26 20:11:16 +01:00

15 lines
378 B
Plaintext

error: only async fn is supported
--> $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::future::ready(()).await
4 | | }
| |_^ consider adding a `main` function to `$DIR/tests/trybuild/main-02-only-async.rs`