blob: 14a870dc39bf6a3ca2e1754aab5aaff9ee99dbe3 [file] [log] [blame] [edit]
trait Foo<const M: u8, const M: u8 = M> {}
//~^ ERROR the name `M` is already used for a generic parameter in this item's generic parameters
impl Foo<2> for () {}
fn main() {}