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/consts/const-tuple-struct.rs
Normal file
14
tests/ui/consts/const-tuple-struct.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// run-pass
|
||||
|
||||
struct Bar(isize, isize);
|
||||
|
||||
static X: Bar = Bar(1, 2);
|
||||
|
||||
pub fn main() {
|
||||
match X {
|
||||
Bar(x, y) => {
|
||||
assert_eq!(x, 1);
|
||||
assert_eq!(y, 2);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue