add compile-error test for #2687
add compile-error test for #2687

Issue fixed by an unknown commit.

closes #2687

raulgrell/zig,zig-lang/zig,andrewrk/zig,raulgrell/zig,zig-lang/zig,andrewrk/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,raulgrell/zig