Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
14
tests/ui/array-slice-vec/cast-in-array-size.rs
Normal file
14
tests/ui/array-slice-vec/cast-in-array-size.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// run-pass
|
||||
|
||||
|
||||
// issues #10618 and #16382
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
const SIZE: isize = 25;
|
||||
|
||||
fn main() {
|
||||
let _a: [bool; 1 as usize];
|
||||
let _b: [isize; SIZE as usize] = [1; SIZE as usize];
|
||||
let _c: [bool; '\n' as usize] = [true; '\n' as usize];
|
||||
let _d: [bool; true as usize] = [true; true as usize];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue