]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/issue-100631.rs
Rollup merge of #107761 - oli-obk:miri_🪵, r=TaKO8Ki
[rust.git] / tests / ui / attributes / issue-100631.rs
1 // issue #100631, make sure `TyCtxt::get_attr` only called by case that compiler
2 // can reasonably deal with multiple attributes.
3 // `repr` will use `TyCtxt::get_attrs` since it's `DuplicatesOk`.
4 #[repr(C)] //~ ERROR: unsupported representation for zero-variant enum [E0084]
5 #[repr(C)]
6 enum Foo {}
7
8 fn main() {}