]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/unresolved_type_param.stderr
Rollup merge of #107076 - megakorre:106419_add_test_case, r=compiler-errors
[rust.git] / tests / 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:10: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:10: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:10: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:10: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:10: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:10:10
33    |
34 LL |     bar().await;
35    |          ^^^^^^
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0698`.