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
145 B
Rust
Raw Normal View History

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