2018-06-06 14:31:43 -05:00
|
|
|
warning: `repr` attribute must have a hint
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/repr.rs:3:1
|
2018-06-06 14:31:43 -05:00
|
|
|
|
|
|
|
|
LL | #[repr]
|
|
|
|
| ^^^^^^^ needs a hint
|
|
|
|
|
|
2018-06-06 16:11:48 -05:00
|
|
|
= note: #[warn(bad_repr)] on by default
|
2018-06-06 16:18:13 -05:00
|
|
|
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
|
2018-06-06 16:33:07 -05:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
|
2018-06-06 14:31:43 -05:00
|
|
|
|
|
|
|
warning: `repr` attribute isn't configurable with a literal
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/repr.rs:7:1
|
2018-06-06 14:31:43 -05:00
|
|
|
|
|
|
|
|
LL | #[repr = "B"]
|
|
|
|
| ^^^^^^^^^^^^^ needs a hint
|
|
|
|
|
|
2018-06-06 16:18:13 -05:00
|
|
|
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
|
2018-06-06 16:33:07 -05:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
|
2018-06-06 14:31:43 -05:00
|
|
|
|
|
|
|
warning: `repr` attribute isn't configurable with a literal
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/repr.rs:11:1
|
2018-06-06 14:31:43 -05:00
|
|
|
|
|
|
|
|
LL | #[repr = "C"]
|
2018-06-06 17:48:08 -05:00
|
|
|
| ^^^^^^^^^^^^^ help: give `repr` a hint: `#[repr(C)]`
|
2018-06-06 14:31:43 -05:00
|
|
|
|