mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
21 lines
695 B
Rust
21 lines
695 B
Rust
//! This test ICEs because the `repr(packed)` attribute
|
|
//! was generated by a proc macro, so `#[derive]` didn't see it.
|
|
|
|
//@aux-build: proc_macro_generate_packed.rs
|
|
//@known-bug: #120873
|
|
//@ failure-status: 101
|
|
//@ normalize-stderr-test "note: .*\n\n" -> ""
|
|
//@ normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
|
//@ normalize-stderr-test "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
|
|
//@ rustc-env:RUST_BACKTRACE=0
|
|
|
|
extern crate proc_macro_generate_packed;
|
|
use proc_macro_generate_packed::proc_macro_attribute_that_generates_repr_packed;
|
|
|
|
#[derive(PartialEq)]
|
|
#[repr(C)]
|
|
#[proc_macro_attribute_that_generates_repr_packed]
|
|
struct Dealigned<T>(u8, T);
|
|
|
|
fn main() {}
|