Files
rust/tests/ui/repr/repr-align.stderr

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
2024-03-02 23:18:06 +08:00
--> $DIR/repr-align.rs:3:14
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | #[repr(align(16.0))]
2024-03-02 23:18:06 +08:00
| ^^^^
2018-08-08 14:28:26 +02:00
error[E0589]: invalid `repr(align)` attribute: not a power of two
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:6:14
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | #[repr(align(15))]
2024-03-02 23:18:06 +08:00
| ^^
2018-08-08 14:28:26 +02:00
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:9:14
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | #[repr(align(4294967296))]
2024-03-02 23:18:06 +08:00
| ^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error[E0589]: invalid `repr(align)` attribute: not a power of two
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:15:14
2020-01-08 20:02:10 +03:00
|
LL | #[repr(align(0))]
| ^
error[E0589]: invalid `repr(align)` attribute: not an unsuffixed integer
2024-03-02 23:18:06 +08:00
--> $DIR/repr-align.rs:18:14
2019-05-27 07:35:48 +02:00
|
2020-01-08 20:02:10 +03:00
LL | #[repr(align(16.0))]
2024-03-02 23:18:06 +08:00
| ^^^^
2020-01-08 20:02:10 +03:00
error[E0589]: invalid `repr(align)` attribute: not a power of two
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:21:14
2020-01-08 20:02:10 +03:00
|
2019-03-09 15:03:44 +03:00
LL | #[repr(align(15))]
2024-03-02 23:18:06 +08:00
| ^^
2019-05-27 07:35:48 +02:00
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:24:14
2019-05-27 07:35:48 +02:00
|
LL | #[repr(align(4294967296))]
2024-03-02 23:18:06 +08:00
| ^^^^^^^^^^
2019-05-27 07:35:48 +02:00
error[E0589]: invalid `repr(align)` attribute: not a power of two
2025-02-09 22:50:01 +01:00
--> $DIR/repr-align.rs:30:14
|
LL | #[repr(align(0))]
| ^
2025-02-09 22:50:01 +01:00
error: aborting due to 8 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0589`.