master
 1const empty = .{};
 2
 3const Foo = struct {};
 4const foo: Foo = empty;
 5
 6const Bar = struct { a: u32 };
 7const bar: Bar = empty;
 8
 9comptime {
10    _ = foo;
11}
12comptime {
13    _ = bar;
14}
15
16// error
17//
18// :4:18: error: expected type 'tmp.Foo', found '@TypeOf(.{})'
19// :3:13: note: struct declared here
20// :7:18: error: expected type 'tmp.Bar', found '@TypeOf(.{})'
21// :6:13: note: struct declared here