summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/issue-100631.rs
blob: 0fefcf83fd51670b08bdf02387566241a687adf2 (plain)
1
2
3
4
5
6
7
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() {}