2019-05-22 00:47:23 +00:00
|
|
|
error: malformed `repr` attribute input
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43988.rs:24:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | #[repr]
|
2019-11-08 01:46:45 +00:00
|
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C)]`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2019-05-22 00:47:23 +00:00
|
|
|
error: malformed `repr` attribute input
|
2020-09-10 18:54:17 +00:00
|
|
|
--> $DIR/issue-43988.rs:34:14
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | let _z = #[repr] 1;
|
2019-11-08 01:46:45 +00:00
|
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C)]`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-43988.rs:5:5
|
2018-07-15 21:11:54 +00: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 15:56:47 +00:00
|
|
|
--> $DIR/issue-43988.rs:10:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | #[inline(XYZ)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
LL | let _b = 4;
|
|
|
|
| ----------- not a function or closure
|
|
|
|
|
2020-09-10 18:54:17 +00:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43988.rs:14:12
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | #[repr(nothing)]
|
2020-09-10 18:54:17 +00:00
|
|
|
| ^^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | let _x = 0;
|
2019-05-22 14:31:09 +00:00
|
|
|
| ----------- not a struct, enum, or union
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2020-09-10 18:54:17 +00:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43988.rs:18:12
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | #[repr(something_not_real)]
|
2020-09-10 18:54:17 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | / loop {
|
|
|
|
LL | | ()
|
|
|
|
LL | | };
|
2020-09-10 18:54:17 +00:00
|
|
|
| |_____- not a struct, enum, or union
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2020-09-10 18:54:17 +00:00
|
|
|
--> $DIR/issue-43988.rs:30:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | #[inline(ABC)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
LL | foo();
|
|
|
|
| ----- not a function or closure
|
|
|
|
|
2020-09-10 18:54:17 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0517, E0518.
|
2018-07-15 21:11:54 +00:00
|
|
|
For more information about an error, try `rustc --explain E0517`.
|