blob: dd5aa0dd077ae835eb50605d8e901726f2d68304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Provoke an unresolved type error (T).
// Error message should pinpoint the type parameter T as needing to be bound
// (rather than give a general error message)
// edition:2018
async fn bar<T>() -> () {}
async fn foo() {
bar().await;
//~^ ERROR type annotations needed
}
fn main() {}
|