rust/tests/ui/repr/repr-transparent-other-reprs.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
844 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0692]: transparent struct cannot have other repr hints
2022-01-19 09:24:49 -06:00
--> $DIR/repr-transparent-other-reprs.rs:3:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[repr(transparent, C)]
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^ ^
error[E0692]: transparent struct cannot have other repr hints
2022-01-19 09:24:49 -06:00
--> $DIR/repr-transparent-other-reprs.rs:8:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[repr(transparent, packed)]
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^ ^^^^^^
error[E0692]: transparent struct cannot have other repr hints
2022-01-19 09:24:49 -06:00
--> $DIR/repr-transparent-other-reprs.rs:11:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[repr(transparent, align(2))]
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^ ^^^^^^^^
error[E0692]: transparent struct cannot have other repr hints
2022-01-19 09:24:49 -06:00
--> $DIR/repr-transparent-other-reprs.rs:14:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[repr(transparent)]
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^
LL | #[repr(C)]
| ^
error: aborting due to 4 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0692`.