2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-11-23 13:48:31 -06:00
|
|
|
|
|
|
|
// After the work to reoptimize structs, it became possible for immediate logic to fail.
|
|
|
|
// This test verifies that it actually works.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let c = |a: u8, b: u16, c: u8| {
|
|
|
|
assert_eq!(a, 1);
|
|
|
|
assert_eq!(b, 2);
|
|
|
|
assert_eq!(c, 3);
|
|
|
|
};
|
|
|
|
c(1, 2, 3);
|
2016-11-23 16:43:36 -06:00
|
|
|
}
|