tests: Move run-pass tests without naming conflicts to ui
This commit is contained in:
parent
ca9faa52f5
commit
9be35f82c1
3226 changed files with 64 additions and 196 deletions
14
src/test/ui/consts/const-tuple-struct.rs
Normal file
14
src/test/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