rust/tests/ui/traits/next-solver/array-default.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
147 B
Rust
Raw Normal View History

2023-12-14 06:11:28 -06:00
//@ compile-flags: -Znext-solver
2023-06-01 15:23:44 -05:00
//@ check-pass
fn has_default<const N: usize>() where [(); N]: Default {}
fn main() {
has_default::<1>();
}