diff options
Diffstat (limited to 'tests/ui/attributes/issue-100631.rs')
-rw-r--r-- | tests/ui/attributes/issue-100631.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/attributes/issue-100631.rs b/tests/ui/attributes/issue-100631.rs new file mode 100644 index 000000000..0fefcf83f --- /dev/null +++ b/tests/ui/attributes/issue-100631.rs @@ -0,0 +1,8 @@ +// issue #100631, make sure `TyCtxt::get_attr` only called by case that compiler +// can reasonably deal with multiple attributes. +// `repr` will use `TyCtxt::get_attrs` since it's `DuplicatesOk`. +#[repr(C)] //~ ERROR: unsupported representation for zero-variant enum [E0084] +#[repr(C)] +enum Foo {} + +fn main() {} |