From 196e18555ba1206bafa8d15cffaf7bddd7846a09 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 14 Jun 2021 13:18:02 -0400 Subject: [PATCH] regression test for issue 85713. --- src/test/ui/issue-85713-align-with-no-arg.rs | 6 ++++++ src/test/ui/issue-85713-align-with-no-arg.stderr | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/test/ui/issue-85713-align-with-no-arg.rs create mode 100644 src/test/ui/issue-85713-align-with-no-arg.stderr diff --git a/src/test/ui/issue-85713-align-with-no-arg.rs b/src/test/ui/issue-85713-align-with-no-arg.rs new file mode 100644 index 000000000000..1afb8e7cb5bf --- /dev/null +++ b/src/test/ui/issue-85713-align-with-no-arg.rs @@ -0,0 +1,6 @@ +#[repr(align)] +//~^ ERROR unrecognized representation hint +//~| ERROR unrecognized representation hint +pub struct Foo; + +pub fn main() { } diff --git a/src/test/ui/issue-85713-align-with-no-arg.stderr b/src/test/ui/issue-85713-align-with-no-arg.stderr new file mode 100644 index 000000000000..99b22ec698ff --- /dev/null +++ b/src/test/ui/issue-85713-align-with-no-arg.stderr @@ -0,0 +1,15 @@ +error[E0552]: unrecognized representation hint + --> $DIR/issue-85713-align-with-no-arg.rs:1:8 + | +LL | #[repr(align)] + | ^^^^^ + +error[E0552]: unrecognized representation hint + --> $DIR/issue-85713-align-with-no-arg.rs:1:8 + | +LL | #[repr(align)] + | ^^^^^ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0552`.