fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
640 B19 linesraw
1error[E0517]: attribute should be applied to struct, enum, or union
2  --> $DIR/repr-transparent-other-items.rs:3:8
3   |
4LL | #[repr(transparent)]
5   |        ^^^^^^^^^^^
6LL | fn cant_repr_this() {}
7   | ---------------------- not a struct, enum, or union
8
9error[E0517]: attribute should be applied to struct, enum, or union
10  --> $DIR/repr-transparent-other-items.rs:6:8
11   |
12LL | #[repr(transparent)]
13   |        ^^^^^^^^^^^
14LL | static CANT_REPR_THIS: u32 = 0;
15   | ------------------------------- not a struct, enum, or union
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0517`.