Skip to content

Commit 196e185

Browse files
pnkfelixMark-Simulacrum
authored andcommitted
regression test for issue 85713.
1 parent fce2a22 commit 196e185

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#[repr(align)]
2+
//~^ ERROR unrecognized representation hint
3+
//~| ERROR unrecognized representation hint
4+
pub struct Foo;
5+
6+
pub fn main() { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error[E0552]: unrecognized representation hint
2+
--> $DIR/issue-85713-align-with-no-arg.rs:1:8
3+
|
4+
LL | #[repr(align)]
5+
| ^^^^^
6+
7+
error[E0552]: unrecognized representation hint
8+
--> $DIR/issue-85713-align-with-no-arg.rs:1:8
9+
|
10+
LL | #[repr(align)]
11+
| ^^^^^
12+
13+
error: aborting due to 2 previous errors
14+
15+
For more information about this error, try `rustc --explain E0552`.

0 commit comments

Comments
 (0)