We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd13e75 commit 76c8efdCopy full SHA for 76c8efd
test/compile_errors.zig
@@ -1,6 +1,15 @@
1
const tests = @import("tests.zig");
2
3
pub fn addCases(cases: *tests.CompileErrorContext) void {
4
+ cases.add(
5
+ "attempted implicit cast from T to [*]const T",
6
+ \\export fn entry() void {
7
+ \\ const x: [*]const bool = true;
8
+ \\}
9
+ ,
10
+ ".tmp_source.zig:2:30: error: expected type '[*]const bool', found 'bool'",
11
+ );
12
+
13
cases.add(
14
"dereference unknown length pointer",
15
\\export fn entry(x: [*]i32) i32 {
0 commit comments