Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/structs-enums/enum-vec-initializer.rs
Normal file
17
tests/ui/structs-enums/enum-vec-initializer.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// run-pass
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
enum Flopsy {
|
||||
Bunny = 2
|
||||
}
|
||||
|
||||
const BAR:usize = Flopsy::Bunny as usize;
|
||||
const BAR2:usize = BAR;
|
||||
|
||||
pub fn main() {
|
||||
let _v = [0; Flopsy::Bunny as usize];
|
||||
let _v = [0; BAR];
|
||||
let _v = [0; BAR2];
|
||||
const BAR3:usize = BAR2;
|
||||
let _v = [0; BAR3];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue