mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
14 lines
529 B
Rust
14 lines
529 B
Rust
struct Foo<const N: usize = M, const M: usize = 10>;
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
|
|
|
enum Bar<const N: usize = M, const M: usize = 10> {}
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
|
|
|
struct Foo2<const N: usize = N>;
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
|
|
|
enum Bar2<const N: usize = N> {}
|
|
//~^ ERROR generic parameters with a default cannot use forward declared identifiers
|
|
|
|
fn main() {}
|