error[E0308]: mismatched types --> $DIR/wrap-suggestion-privacy.rs:12:19 | LL | needs_wrapper(0); | ------------- ^ expected `Wrapper`, found integer | | | arguments to this function are incorrect | = note: expected struct `Wrapper` found type `{integer}` note: function defined here --> $DIR/wrap-suggestion-privacy.rs:5:4 | LL | fn needs_wrapper(t: inner::Wrapper) {} | ^^^^^^^^^^^^^ ---------------------- 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) | LL | needs_wrapper(inner::Wrapper(0)); | +++++++++++++++ + error[E0308]: mismatched types --> $DIR/wrap-suggestion-privacy.rs:17:20 | LL | needs_wrapping(0); | -------------- ^ expected `Wrapping`, found integer | | | arguments to this function are incorrect | = note: expected struct `Wrapping` found type `{integer}` note: function defined here --> $DIR/wrap-suggestion-privacy.rs:6:4 | LL | fn needs_wrapping(t: std::num::Wrapping) {} | ^^^^^^^^^^^^^^ -------------------------- help: try wrapping the expression in `std::num::Wrapping` | LL | needs_wrapping(std::num::Wrapping(0)); | +++++++++++++++++++ + error[E0308]: mismatched types --> $DIR/wrap-suggestion-privacy.rs:22:17 | LL | needs_ready(Some(0)); | ----------- ^^^^^^^ expected `Ready`, found `Option<{integer}>` | | | arguments to this function are incorrect | = note: expected struct `std::future::Ready` found enum `Option<{integer}>` note: function defined here --> $DIR/wrap-suggestion-privacy.rs:7:4 | LL | fn needs_ready(t: std::future::Ready) {} | ^^^^^^^^^^^ -------------------------- error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0308`.