mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 20:13:47 +00:00
9 lines
145 B
Rust
9 lines
145 B
Rust
// compile-flags: -Znext-solver
|
|
// check-pass
|
|
|
|
fn has_default<const N: usize>() where [(); N]: Default {}
|
|
|
|
fn main() {
|
|
has_default::<1>();
|
|
}
|