1const S = extern struct { x: u32 };
2export fn foo(s: S) void {
3 const as_int: u32 = @bitCast(s);
4 _ = as_int;
5}
6
7// error
8//
9// :3:34: error: cannot @bitCast from 'tmp.S'
10// :1:18: note: struct declared here