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