| 1 | export fn foo() void { |
| 2 | const slice: []const u8 = &.{ 1, 2, 3 }; |
| 3 | const result: [*]const u8 = @alignCast(slice); |
| 4 | _ = result; |
| 5 | } |
| 6 | |
| 7 | // error |
| 8 | // |
| 9 | // :3:33: error: cannot implicitly convert slice to many pointer |
| 10 | // :3:33: note: use 'ptr' field to convert slice to many pointer |