rust/src/test/ui/issues/issue-73112.rs
David Wood d9485be595
typeck: use item_name in cross-crate packed diag
This commit replaces the use of `expect_local` and `hir().get` to fetch
the identifier for a ADT with `item_name` - which works across crates.

Signed-off-by: David Wood <david@davidtw.co>
2020-07-14 16:28:11 +01:00

13 lines
274 B
Rust

// aux-build:issue-73112.rs
extern crate issue_73112;
fn main() {
use issue_73112::PageTable;
#[repr(C, packed)]
struct SomeStruct {
//~^ ERROR packed type cannot transitively contain a `#[repr(align)]` type [E0588]
page_table: PageTable,
}
}