mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-03 01:08:18 +00:00
9 lines
312 B
Rust
9 lines
312 B
Rust
// 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() {}
|