Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
18
tests/ui/structs-enums/struct-like-variant-construct.rs
Normal file
18
tests/ui/structs-enums/struct-like-variant-construct.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
enum Foo {
|
||||
Bar {
|
||||
a: isize,
|
||||
b: isize
|
||||
},
|
||||
Baz {
|
||||
c: f64,
|
||||
d: f64
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
let _x = Foo::Bar { a: 2, b: 3 };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue