regression test for issue 85713.

This commit is contained in:
Felix S. Klock II 2021-06-14 13:18:02 -04:00 committed by Mark Rousskov
parent fce2a229f6
commit 196e18555b
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#[repr(align)]
//~^ ERROR unrecognized representation hint
//~| ERROR unrecognized representation hint
pub struct Foo;
pub fn main() { }

View file

@ -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`.