rust/src/test/ui/issues/issue-73112.stderr
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

21 lines
515 B
Plaintext

error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
--> $DIR/issue-73112.rs:9:5
|
LL | / struct SomeStruct {
LL | |
LL | | page_table: PageTable,
LL | | }
| |_____^
|
note: `PageTable` has a `#[repr(align)]` attribute
--> $DIR/auxiliary/issue-73112.rs:8:1
|
LL | / pub struct PageTable {
LL | | entries: [PageTableEntry; 512],
LL | | }
| |_^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0588`.