File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 1- error[E0601]: `main` function not found in crate `union_custom_drop`
2- --> $DIR/union-custom-drop.rs:4:1
3- |
4- LL | / #![feature(untagged_unions)]
5- LL | |
6- LL | | union Foo {
7- LL | | bar: Bar,
8- ... |
9- LL | | }
10- LL | | }
11- | |_^ consider adding a `main` function to `$DIR/union-custom-drop.rs`
12-
131error[E0740]: unions may not contain fields that need dropping
142 --> $DIR/union-custom-drop.rs:7:5
153 |
@@ -22,7 +10,6 @@ note: `std::mem::ManuallyDrop` can be used to wrap the type
2210LL | bar: Bar,
2311 | ^^^^^^^^
2412
25- error: aborting due to 2 previous errors
13+ error: aborting due to previous error
2614
27- Some errors have detailed explanations: E0601, E0740.
28- For more information about an error, try `rustc --explain E0601`.
15+ For more information about this error, try `rustc --explain E0740`.
You can’t perform that action at this time.
0 commit comments