| author | |
| committer | |
| log | b85bb152bf4c84a298200703d9a005ffcd1b24a0 |
| tree | 5423517c56e80a0be7d48e4f3b48a5e279ddb1f9 |
| parent | 9e60c89601ab205cd3e63215b318beb89ad1b471 |
| signature |
2 files changed, 2 insertions(+), 2 deletions(-)
src/ir.cpp+1-1| ... | ... | @@ -30246,7 +30246,7 @@ static Error ir_resolve_lazy_raw(AstNode *source_node, ZigValue *val) { |
| 30246 | 30246 | return ErrorSemanticAnalyzeFail; |
| 30247 | 30247 | } else if (elem_type->id == ZigTypeIdOpaque) { |
| 30248 | 30248 | ir_add_error(ira, &lazy_ptr_type->elem_type->base, |
| 30249 | buf_sprintf("C pointers cannot point opaque types")); | |
| 30249 | buf_sprintf("C pointers cannot point to opaque types")); | |
| 30250 | 30250 | return ErrorSemanticAnalyzeFail; |
| 30251 | 30251 | } else if (lazy_ptr_type->is_allowzero) { |
| 30252 | 30252 | ir_add_error(ira, &lazy_ptr_type->elem_type->base, |
test/compile_errors.zig+1-1| ... | ... | @@ -1592,7 +1592,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 1592 | 1592 | \\ var y: [*c]c_void = x; |
| 1593 | 1593 | \\} |
| 1594 | 1594 | , &[_][]const u8{ |
| 1595 | "tmp.zig:3:16: error: C pointers cannot point opaque types", | |
| 1595 | "tmp.zig:3:16: error: C pointers cannot point to opaque types", | |
| 1596 | 1596 | }); |
| 1597 | 1597 | |
| 1598 | 1598 | cases.add("directly embedding opaque type in struct and union", |