| 1 | const Input = struct { |
| 2 | value: u32 = @as(error{}!u32, 0), |
| 3 | }; |
| 4 | export fn foo() void { |
| 5 | var x: Input = Input{}; |
| 6 | _ = &x; |
| 7 | } |
| 8 | |
| 9 | // error |
| 10 | // |
| 11 | //:2:18: error: expected type 'u32', found 'error{}!u32' |
| 12 | //:2:18: note: cannot convert error union to payload type |
| 13 | //:2:18: note: consider using 'try', 'catch', or 'if' |