summaryrefslogtreecommitdiffstats
path: root/tests-build/tests/fail/macros_invalid_input.stderr
blob: 12373486485ae6f24a347383eafc371403570f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
error: the async keyword is missing from the function declaration
 --> $DIR/macros_invalid_input.rs:4:1
  |
4 | fn main_is_not_async() {}
  | ^^

error: Unknown attribute foo is specified; expected `current_thread` or `threadpool`
 --> $DIR/macros_invalid_input.rs:6:15
  |
6 | #[tokio::main(foo)]
  |               ^^^

error: Must have specified ident
 --> $DIR/macros_invalid_input.rs:9:15
  |
9 | #[tokio::main(threadpool::bar)]
  |               ^^^^^^^^^^^^^^^

error: the async keyword is missing from the function declaration
  --> $DIR/macros_invalid_input.rs:13:1
   |
13 | fn test_is_not_async() {}
   | ^^

error: the test function cannot accept arguments
  --> $DIR/macros_invalid_input.rs:16:27
   |
16 | async fn test_fn_has_args(_x: u8) {}
   |                           ^^^^^^

error: Unknown attribute foo is specified; expected `current_thread` or `threadpool`
  --> $DIR/macros_invalid_input.rs:18:15
   |
18 | #[tokio::test(foo)]
   |               ^^^

error: second test attribute is supplied
  --> $DIR/macros_invalid_input.rs:22:1
   |
22 | #[test]
   | ^^^^^^^