about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/division.rs
blob: b6b5750a48f4675194c907e120cd972f730d5f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn with_bound<const N: usize>() where [u8; N / 2]: Sized {
    let _: [u8; N / 2] = [0; N / 2];
}

fn main() {
    with_bound::<4>();
}