2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `repr` attribute input
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-43988.rs:24:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #[repr]
|
2019-11-07 19:46:45 -06:00
|
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C)]`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `repr` attribute input
|
2020-09-10 13:54:17 -05:00
|
|
|
--> $DIR/issue-43988.rs:34:14
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | let _z = #[repr] 1;
|
2019-11-07 19:46:45 -06:00
|
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C)]`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-43988.rs:5:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL | let _a = 4;
|
|
|
|
| ----------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-43988.rs:10:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #[inline(XYZ)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
LL | let _b = 4;
|
|
|
|
| ----------- not a function or closure
|
|
|
|
|
2021-01-20 20:49:04 -06:00
|
|
|
error[E0552]: unrecognized representation hint
|
2020-09-10 13:54:17 -05:00
|
|
|
--> $DIR/issue-43988.rs:14:12
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #[repr(nothing)]
|
2020-09-10 13:54:17 -05:00
|
|
|
| ^^^^^^^
|
2022-09-06 10:02:42 -05:00
|
|
|
|
|
2023-07-29 01:58:29 -05:00
|
|
|
= help: valid reprs are `Rust`, `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2021-01-20 20:49:04 -06:00
|
|
|
error[E0552]: unrecognized representation hint
|
2020-09-10 13:54:17 -05:00
|
|
|
--> $DIR/issue-43988.rs:18:12
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2021-01-20 20:49:04 -06:00
|
|
|
LL | #[repr(something_not_real)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-09-06 10:02:42 -05:00
|
|
|
|
|
2023-07-29 01:58:29 -05:00
|
|
|
= help: valid reprs are `Rust`, `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2020-09-10 13:54:17 -05:00
|
|
|
--> $DIR/issue-43988.rs:30:5
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #[inline(ABC)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
LL | foo();
|
|
|
|
| ----- not a function or closure
|
|
|
|
|
2020-09-10 13:54:17 -05:00
|
|
|
error: aborting due to 7 previous errors
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2021-01-20 20:49:04 -06:00
|
|
|
Some errors have detailed explanations: E0518, E0552.
|
|
|
|
For more information about an error, try `rustc --explain E0518`.
|