pub fn bar() {
foo(TypeWithState(marker::PhantomData));
- //~^ ERROR type annotations or generic parameter binding required
+ //~^ ERROR unable to infer enough type information about `_` [E0282]
+ //~| NOTE cannot infer type for `_`
+ //~| NOTE type annotations or generic parameter binding
}
fn main() {