()
| 2173 | return 0 |
| 2174 | } |
| 2175 | } |
| 2176 | return -1 |
| 2177 | } |
| 2178 | |
| 2179 | main: () -> i32 { |
| 2180 | value: Option<i32> = Some(42) |
| 2181 | return read(value) |
| 2182 | } |
| 2183 | "#, |
| 2184 | 42, |
| 2185 | ); |
| 2186 | } |
| 2187 | |
| 2188 | #[test] |
| 2189 | fn struct_argument_is_passed_by_value() { |
| 2190 | assert_exit( |
nothing calls this directly
no test coverage detected