aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/error_set_decl_literal.zig
blob: abb22f189fd8441141ab2ccb1f26f94501d428dc (plain)
1
2
3
4
5
6
7
8
9
export fn entry() void {
    const E = error{Foo};
    const e: E = .Foo;
    _ = e;
}

// error
//
// :3:19: error: expected type 'error{Foo}', found '@Type(.enum_literal)'