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