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