1 error: usage of `Rc<Mutex<_>>`
2 --> $DIR/rc_mutex.rs:8:10
4 LL | foo: Rc<Mutex<i32>>,
7 = note: `-D clippy::rc-mutex` implied by `-D warnings`
8 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
10 error: usage of `Rc<Mutex<_>>`
11 --> $DIR/rc_mutex.rs:26:18
13 LL | fn test1<T>(foo: Rc<Mutex<T>>) {}
16 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
18 error: usage of `Rc<Mutex<_>>`
19 --> $DIR/rc_mutex.rs:27:15
21 LL | fn test2(foo: Rc<Mutex<MyEnum>>) {}
24 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
26 error: usage of `Rc<Mutex<_>>`
27 --> $DIR/rc_mutex.rs:28:15
29 LL | fn test3(foo: Rc<Mutex<SubT<usize>>>) {}
30 | ^^^^^^^^^^^^^^^^^^^^^^
32 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
34 error: aborting due to 4 previous errors