rustc/tests/ui/const-generics/generic_const_exprs/division.rs
2023-08-02 10:33:26 +02:00

12 lines
213 B
Rust

// 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>();
}