1 error[E0308]: mismatched types
2 --> $DIR/wrap-suggestion-privacy.rs:12:19
5 | ------------- ^ expected struct `Wrapper`, found integer
7 | arguments to this function are incorrect
9 = note: expected struct `Wrapper<i32>`
10 found type `{integer}`
11 note: function defined here
12 --> $DIR/wrap-suggestion-privacy.rs:5:4
14 LL | fn needs_wrapper(t: inner::Wrapper<i32>) {}
15 | ^^^^^^^^^^^^^ ----------------------
16 help: try wrapping the expression in `inner::Wrapper` (its field is private, but it's local to this crate and its privacy can be changed)
18 LL | needs_wrapper(inner::Wrapper(0));
21 error[E0308]: mismatched types
22 --> $DIR/wrap-suggestion-privacy.rs:17:20
24 LL | needs_wrapping(0);
25 | -------------- ^ expected struct `Wrapping`, found integer
27 | arguments to this function are incorrect
29 = note: expected struct `Wrapping<i32>`
30 found type `{integer}`
31 note: function defined here
32 --> $DIR/wrap-suggestion-privacy.rs:6:4
34 LL | fn needs_wrapping(t: std::num::Wrapping<i32>) {}
35 | ^^^^^^^^^^^^^^ --------------------------
36 help: try wrapping the expression in `std::num::Wrapping`
38 LL | needs_wrapping(std::num::Wrapping(0));
39 | +++++++++++++++++++ +
41 error[E0308]: mismatched types
42 --> $DIR/wrap-suggestion-privacy.rs:22:17
44 LL | needs_ready(Some(0));
45 | ----------- ^^^^^^^ expected struct `Ready`, found enum `Option`
47 | arguments to this function are incorrect
49 = note: expected struct `std::future::Ready<i32>`
50 found enum `Option<{integer}>`
51 note: function defined here
52 --> $DIR/wrap-suggestion-privacy.rs:7:4
54 LL | fn needs_ready(t: std::future::Ready<i32>) {}
55 | ^^^^^^^^^^^ --------------------------
57 error: aborting due to 3 previous errors
59 For more information about this error, try `rustc --explain E0308`.