summary refs log tree commit diff
path: root/src/test/ui/const-generics/const_evaluatable_checked/division.rs
blob: 71a5f2d3472013d457b6b623159c1313c5266c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
#![feature(const_generics, const_evaluatable_checked)]
#![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>();
}