Skip to content

Commit c227d85

Browse files
committed
Add regression tests
1 parent 12d3f10 commit c227d85

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
3+
#![feature(type_alias_impl_trait)]
4+
5+
fn main() {
6+
type T = impl Copy;
7+
let foo: T = (1u32, 2u32);
8+
let x: (_, _) = foo;
9+
println!("{:?}", x);
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// check-pass
2+
3+
fn foo(b: bool) -> impl Copy {
4+
if b {
5+
return (5,6)
6+
}
7+
let x: (_, _) = foo(true);
8+
println!("{:?}", x);
9+
(1u32, 2u32)
10+
}
11+
12+
fn main() {
13+
foo(false);
14+
}

0 commit comments

Comments
 (0)