]> git.lizzy.rs Git - rust.git/blob - tests/ui/functions-closures/closure-immediate.rs
Rollup merge of #107508 - WaffleLapkin:uneq'15, r=oli-obk
[rust.git] / tests / ui / functions-closures / closure-immediate.rs
1 // run-pass
2
3 // After the work to reoptimize structs, it became possible for immediate logic to fail.
4 // This test verifies that it actually works.
5
6 fn main() {
7     let c = |a: u8, b: u16, c: u8| {
8         assert_eq!(a, 1);
9         assert_eq!(b, 2);
10         assert_eq!(c, 3);
11     };
12     c(1, 2, 3);
13 }