]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/cast-in-array-size.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / array-slice-vec / cast-in-array-size.rs
1 // run-pass
2
3
4 // issues #10618 and #16382
5 // pretty-expanded FIXME #23616
6
7 const SIZE: isize = 25;
8
9 fn main() {
10     let _a: [bool; 1 as usize];
11     let _b: [isize; SIZE as usize] = [1; SIZE as usize];
12     let _c: [bool; '\n' as usize] = [true; '\n' as usize];
13     let _d: [bool; true as usize] = [true; true as usize];
14 }