summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/array-default.rs
blob: 5077137b09b4b1f3951c8088d0d2117b0350f200 (plain)
1
2
3
4
5
6
7
8
// compile-flags: -Ztrait-solver=next
// check-pass

fn has_default<const N: usize>() where [(); N]: Default {}

fn main() {
    has_default::<1>();
}