MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / match_negative_literal_pattern

Function match_negative_literal_pattern

tests/integration/hll_conformance.rs:1303–1318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]
1319fn 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.

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected