()
| 150 | } |
| 151 | "#, |
| 152 | ); |
| 153 | } |
| 154 | |
| 155 | #[test] |
| 156 | fn destructured_field_used_in_arithmetic() { |
| 157 | compile_ok( |
| 158 | r#" |
| 159 | dims: () -> { w: i32, h: i32 } { return { .w = 6, .h = 7 } } |
| 160 | main: () -> i32 { |
| 161 | { w: i32, h: i32 } = dims() |
| 162 | return w * h |
| 163 | } |
| 164 | "#, |
nothing calls this directly
no test coverage detected