1 error[E0599]: no method named `method` found for struct `RefCell` in the current scope
2 --> $DIR/inner_type.rs:17:16
4 LL | other_item.method();
5 | ^^^^^^ method not found in `RefCell<Struct<u32>>`
7 note: the method `method` exists on the type `Struct<u32>`
8 --> $DIR/inner_type.rs:9:5
10 LL | pub fn method(&self) {}
11 | ^^^^^^^^^^^^^^^^^^^^
12 help: use `.borrow()` to borrow the `Struct<u32>`, panicking if a mutable borrow exists
14 LL | other_item.borrow().method();
17 error[E0599]: no method named `some_mutable_method` found for struct `RefCell` in the current scope
18 --> $DIR/inner_type.rs:21:16
20 LL | other_item.some_mutable_method();
21 | ^^^^^^^^^^^^^^^^^^^ method not found in `RefCell<Struct<u32>>`
23 note: the method `some_mutable_method` exists on the type `Struct<u32>`
24 --> $DIR/inner_type.rs:11:5
26 LL | pub fn some_mutable_method(&mut self) {}
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 help: use `.borrow_mut()` to mutably borrow the `Struct<u32>`, panicking if any borrows exist
30 LL | other_item.borrow_mut().some_mutable_method();
33 error[E0599]: no method named `method` found for struct `Mutex` in the current scope
34 --> $DIR/inner_type.rs:27:18
36 LL | another_item.method();
37 | ^^^^^^ method not found in `Mutex<Struct<u32>>`
39 note: the method `method` exists on the type `Struct<u32>`
40 --> $DIR/inner_type.rs:9:5
42 LL | pub fn method(&self) {}
43 | ^^^^^^^^^^^^^^^^^^^^
44 help: use `.lock().unwrap()` to borrow the `Struct<u32>`, blocking the current thread until it can be acquired
46 LL | another_item.lock().unwrap().method();
49 error[E0599]: no method named `method` found for struct `RwLock` in the current scope
50 --> $DIR/inner_type.rs:33:18
52 LL | another_item.method();
53 | ^^^^^^ method not found in `RwLock<Struct<u32>>`
55 note: the method `method` exists on the type `Struct<u32>`
56 --> $DIR/inner_type.rs:9:5
58 LL | pub fn method(&self) {}
59 | ^^^^^^^^^^^^^^^^^^^^
60 help: use `.read().unwrap()` to borrow the `Struct<u32>`, blocking the current thread until it can be acquired
62 LL | another_item.read().unwrap().method();
65 error[E0599]: no method named `some_mutable_method` found for struct `RwLock` in the current scope
66 --> $DIR/inner_type.rs:37:18
68 LL | another_item.some_mutable_method();
69 | ^^^^^^^^^^^^^^^^^^^ method not found in `RwLock<Struct<u32>>`
71 note: the method `some_mutable_method` exists on the type `Struct<u32>`
72 --> $DIR/inner_type.rs:11:5
74 LL | pub fn some_mutable_method(&mut self) {}
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76 help: use `.write().unwrap()` to mutably borrow the `Struct<u32>`, blocking the current thread until it can be acquired
78 LL | another_item.write().unwrap().some_mutable_method();
81 error: aborting due to 5 previous errors
83 For more information about this error, try `rustc --explain E0599`.