aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/tagenum_value.zc
blob: be66bdc796da5fe64d054354d767ab3e2702c6c7 (plain) (blame)
1
2
3
4
5
namespace;

// expect: a tagged enum's members take no explicit values
enum shape { circle { int r; }, dot = 5 };
fn main() { return 0; }