File tree 1 file changed +2
-15
lines changed
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
-
13
1
error[E0740]: unions may not contain fields that need dropping
14
2
--> $DIR/union-custom-drop.rs:7:5
15
3
|
@@ -22,7 +10,6 @@ note: `std::mem::ManuallyDrop` can be used to wrap the type
22
10
LL | bar: Bar,
23
11
| ^^^^^^^^
24
12
25
- error: aborting due to 2 previous errors
13
+ error: aborting due to previous error
26
14
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