]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_const_exprs/division.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / const-generics / generic_const_exprs / division.rs
1 // run-pass
2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
4
5 fn with_bound<const N: usize>() where [u8; N / 2]: Sized {
6     let _: [u8; N / 2] = [0; N / 2];
7 }
8
9 fn main() {
10     with_bound::<4>();
11 }