; enum.switch misses variant B and has no default. ; expect: reject E5002 ; phase: 0 ; spec: docs/spec/07a-air-instructions.md module test.non_exhaustive_enum_switch air 0 lang 0.1 features [] type @E = enum { A, B } fn @f(%e: @E) -> void effects [] entry: enum.switch @E %e, A -> @x x: ret