| 1 | const S = struct { self: *S, x: u32 }; |
| 2 | const s: S = .{ .self = &s, .x = 123 }; |
| 3 | |
| 4 | comptime { |
| 5 | _ = s; |
| 6 | } |
| 7 | |
| 8 | // error |
| 9 | // |
| 10 | // :2:18: error: expected type '*tmp.S', found '*const tmp.S' |
| 11 | // :2:18: note: cast discards const qualifier |