mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
5 lines
176 B
Rust
5 lines
176 B
Rust
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() {}
|