diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-06-14 13:18:02 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-06-14 19:49:25 -0400 |
| commit | 196e18555ba1206bafa8d15cffaf7bddd7846a09 (patch) | |
| tree | 5aaf6a2d82d94b841b9ad16e764f4e6d49f1e8e5 | |
| parent | fce2a229f6889e65d857a18dc905b101f5a5a7e8 (diff) | |
| download | rust-196e18555ba1206bafa8d15cffaf7bddd7846a09.tar.gz rust-196e18555ba1206bafa8d15cffaf7bddd7846a09.zip | |
regression test for issue 85713.
| -rw-r--r-- | src/test/ui/issue-85713-align-with-no-arg.rs | 6 | ||||
| -rw-r--r-- | src/test/ui/issue-85713-align-with-no-arg.stderr | 15 |
2 files changed, 21 insertions, 0 deletions
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 00000000000..1afb8e7cb5b --- /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 00000000000..99b22ec698f --- /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`. |
