2018-06-06 19:31:43 +00:00
|
|
|
warning: `repr` attribute must have a hint
|
|
|
|
--> $DIR/repr.rs:13:1
|
|
|
|
|
|
|
|
|
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 19:31:43 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
|
|
|
|
|
|
|
|
warning: `repr` attribute isn't configurable with a literal
|
|
|
|
--> $DIR/repr.rs:17:1
|
|
|
|
|
|
|
|
|
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 19:31:43 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/nomicon/other-reprs.html>
|
|
|
|
|
|
|
|
warning: `repr` attribute isn't configurable with a literal
|
|
|
|
--> $DIR/repr.rs:21:3
|
|
|
|
|
|
|
|
|
LL | #[repr = "C"]
|
|
|
|
| ^^^^^^^^^^ help: give `repr` a hint: `repr(C)`
|
|
|
|
|