1 error[E0282]: type annotations needed
2 --> $DIR/issue-64662.rs:2:9
5 | ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
7 help: consider specifying the generic argument
12 error[E0282]: type annotations needed
13 --> $DIR/issue-64662.rs:3:9
16 | ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
18 help: consider specifying the generic argument
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0282`.