2 pub struct Wrapper<T>(T);
5 fn needs_wrapper(t: inner::Wrapper<i32>) {}
6 fn needs_wrapping(t: std::num::Wrapping<i32>) {}
7 fn needs_ready(t: std::future::Ready<i32>) {}
10 // Suggest wrapping expression because type is local
11 // and its privacy can be easily changed
13 //~^ ERROR mismatched types
14 //~| HELP try wrapping the expression in `inner::Wrapper`
16 // Suggest wrapping expression because field is accessible
18 //~^ ERROR mismatched types
19 //~| HELP try wrapping the expression in `std::num::Wrapping`
21 // Do not suggest wrapping expression
23 //~^ ERROR mismatched types