Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

ices/83107.rs: fixed with errors #867

Merged
merged 1 commit into from
Jul 16, 2021
Merged

ices/83107.rs: fixed with errors #867

merged 1 commit into from
Jul 16, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83107

#[repr(packed, align(0x1000))]
pub struct Foo {
    val: u16,
}

static BAR: Foo = Foo {
    val: 0,
};

fn main() {}
=== stdout ===
=== stderr ===
error[E0587]: type has conflicting packed and align representation hints
 --> /home/runner/work/glacier/glacier/ices/83107.rs:2:1
  |
2 | / pub struct Foo {
3 | |     val: u16,
4 | | }
  | |_^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0587`.
==============

=== stdout ===
=== stderr ===
error[E0587]: type has conflicting packed and align representation hints
 --> /home/runner/work/glacier/glacier/ices/83107.rs:2:1
  |
2 | / pub struct Foo {
3 | |     val: u16,
4 | | }
  | |_^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0587`.
==============
@JohnTitor JohnTitor merged commit dc5dfae into master Jul 16, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83107.rs branch July 16, 2021 12:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants