fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
844 B26 linesraw
1error: union contains a field with possibly non-trivial drop code, drop code of union fields is ignored when dropping the union
2  --> $DIR/union-with-drop-fields-lint.rs:10:5
3   |
4LL |     a: String,
5   |     ^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/union-with-drop-fields-lint.rs:3:9
9   |
10LL | #![deny(unions_with_drop_fields)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^
12
13error: union contains a field with possibly non-trivial drop code, drop code of union fields is ignored when dropping the union
14  --> $DIR/union-with-drop-fields-lint.rs:18:5
15   |
16LL |     a: S,
17   |     ^^^^
18
19error: union contains a field with possibly non-trivial drop code, drop code of union fields is ignored when dropping the union
20  --> $DIR/union-with-drop-fields-lint.rs:23:5
21   |
22LL |     a: T,
23   |     ^^^^
24
25error: aborting due to 3 previous errors
26