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