]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/unresolved_type_param.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / async-await / unresolved_type_param.stderr
1 error[E0698]: type inside `async fn` body must be known in this context
2   --> $DIR/unresolved_type_param.rs:9:5
3    |
4 LL |     bar().await;
5    |     ^^^ cannot infer type for type parameter `T` declared on the function `bar`
6    |
7 note: the type is part of the `async fn` body because of this `await`
8   --> $DIR/unresolved_type_param.rs:9:10
9    |
10 LL |     bar().await;
11    |          ^^^^^^
12
13 error[E0698]: type inside `async fn` body must be known in this context
14   --> $DIR/unresolved_type_param.rs:9:5
15    |
16 LL |     bar().await;
17    |     ^^^ cannot infer type for type parameter `T` declared on the function `bar`
18    |
19 note: the type is part of the `async fn` body because of this `await`
20   --> $DIR/unresolved_type_param.rs:9:10
21    |
22 LL |     bar().await;
23    |          ^^^^^^
24
25 error[E0698]: type inside `async fn` body must be known in this context
26   --> $DIR/unresolved_type_param.rs:9:5
27    |
28 LL |     bar().await;
29    |     ^^^ cannot infer type for type parameter `T` declared on the function `bar`
30    |
31 note: the type is part of the `async fn` body because of this `await`
32   --> $DIR/unresolved_type_param.rs:9:10
33    |
34 LL |     bar().await;
35    |          ^^^^^^
36
37 error[E0698]: type inside `async fn` body must be known in this context
38   --> $DIR/unresolved_type_param.rs:9:5
39    |
40 LL |     bar().await;
41    |     ^^^ cannot infer type for type parameter `T` declared on the function `bar`
42    |
43 note: the type is part of the `async fn` body because of this `await`
44   --> $DIR/unresolved_type_param.rs:9:10
45    |
46 LL |     bar().await;
47    |          ^^^^^^
48
49 error[E0698]: type inside `async fn` body must be known in this context
50   --> $DIR/unresolved_type_param.rs:9:5
51    |
52 LL |     bar().await;
53    |     ^^^ cannot infer type for type parameter `T` declared on the function `bar`
54    |
55 note: the type is part of the `async fn` body because of this `await`
56   --> $DIR/unresolved_type_param.rs:9:10
57    |
58 LL |     bar().await;
59    |          ^^^^^^
60
61 error: aborting due to 5 previous errors
62
63 For more information about this error, try `rustc --explain E0698`.