impl<const N: usize> Marker<N> for Example<N> {}
fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
- //~^ ERROR wrong number of const
- //~| ERROR wrong number of type
+ //~^ ERROR: type provided when a constant was expected
Example::<gimme_a_const!(marker)>
- //~^ ERROR wrong number of const
- //~| ERROR wrong number of type
+ //~^ ERROR: type provided when a constant was expected
}
fn from_marker(_: impl Marker<{
}>;
let _fail = Example::<external_macro!()>;
- //~^ ERROR wrong number of const
- //~| ERROR wrong number of type
+ //~^ ERROR: type provided when a constant was expected
let _fail = Example::<gimme_a_const!()>;
- //~^ ERROR wrong number of const
- //~| ERROR wrong number of type
+ //~^ ERROR: type provided when a constant was expected
//~| ERROR unexpected end of macro invocation
}