1 error[E0599]: no method named `as_mut` found for reference `&Wrapper<Option<i32>>` in the current scope
2 --> $DIR/field-method-suggestion-using-return-ty.rs:5:14
5 | ^^^^^^ method not found in `&Wrapper<Option<i32>>`
7 = help: items from traits can only be used if the trait is implemented and in scope
8 = note: the following trait defines an item `as_mut`, perhaps you need to implement it:
10 help: one of the expressions' fields has a method of the same name
15 error[E0599]: no method named `as_mut` found for reference `&Wrapper<Option<i32>>` in the current scope
16 --> $DIR/field-method-suggestion-using-return-ty.rs:12:14
19 | ^^^^^^ method not found in `&Wrapper<Option<i32>>`
21 = help: items from traits can only be used if the trait is implemented and in scope
22 = note: the following trait defines an item `as_mut`, perhaps you need to implement it:
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0599`.