1 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
2 --> $DIR/rc_mutex.rs:8:10
4 LL | foo: Rc<Mutex<i32>>,
7 = note: `-D clippy::rc-mutex` implied by `-D warnings`
9 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
10 --> $DIR/rc_mutex.rs:20:22
12 LL | pub fn test1<T>(foo: Rc<Mutex<T>>) {}
15 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
16 --> $DIR/rc_mutex.rs:22:19
18 LL | pub fn test2(foo: Rc<Mutex<MyEnum>>) {}
21 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
22 --> $DIR/rc_mutex.rs:24:19
24 LL | pub fn test3(foo: Rc<Mutex<SubT<usize>>>) {}
25 | ^^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 4 previous errors