1 error[E0308]: mismatched types
2 --> $DIR/suggest-removing-tuple-struct-field.rs:11:13
5 | ------- ^^^^^^^ expected `MyWrapper`, found `u32`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/suggest-removing-tuple-struct-field.rs:15:4
12 LL | fn some_fn(wrapped: MyWrapper) {
13 | ^^^^^^^ ------------------
14 help: consider removing the tuple struct field `0`
16 LL - some_fn(value.0);
20 error[E0308]: mismatched types
21 --> $DIR/suggest-removing-tuple-struct-field.rs:12:13
23 LL | some_fn(my_wrapper!(123).0);
24 | ------- ^^^^^^^^^^^^^^^^^^ expected `MyWrapper`, found `u32`
26 | arguments to this function are incorrect
28 note: function defined here
29 --> $DIR/suggest-removing-tuple-struct-field.rs:15:4
31 LL | fn some_fn(wrapped: MyWrapper) {
32 | ^^^^^^^ ------------------
33 help: consider removing the tuple struct field `0`
35 LL - some_fn(my_wrapper!(123).0);
36 LL + some_fn(my_wrapper!(123));
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.