regression test for issue 85713.
This commit is contained in:
parent
fce2a229f6
commit
196e18555b
2 changed files with 21 additions and 0 deletions
6
src/test/ui/issue-85713-align-with-no-arg.rs
Normal file
6
src/test/ui/issue-85713-align-with-no-arg.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#[repr(align)]
|
||||
//~^ ERROR unrecognized representation hint
|
||||
//~| ERROR unrecognized representation hint
|
||||
pub struct Foo;
|
||||
|
||||
pub fn main() { }
|
||||
15
src/test/ui/issue-85713-align-with-no-arg.stderr
Normal file
15
src/test/ui/issue-85713-align-with-no-arg.stderr
Normal 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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue