()
| 1301 | Shape.Circle(r) -> { |
| 1302 | return r * r |
| 1303 | } |
| 1304 | Shape.Rect(w, h) -> { |
| 1305 | return w * h |
| 1306 | } |
| 1307 | Shape.Empty -> { |
| 1308 | return 0 |
| 1309 | } |
| 1310 | } |
| 1311 | return -1 |
| 1312 | } |
| 1313 | "#, |
| 1314 | 42, |
| 1315 | ); |
| 1316 | } |
| 1317 | |
| 1318 | #[test] |
| 1319 | fn variant_names_may_repeat_across_enums() { |
| 1320 | // Two enums declare `Busy`; the qualifier picks one and match arms resolve |
| 1321 | // bare names against the scrutinee's enum. |
nothing calls this directly
no test coverage detected