]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/rc_mutex.stderr
Auto merge of #85646 - Moxinilian:separate-const-switch, r=cjgillot
[rust.git] / src / tools / clippy / tests / ui / rc_mutex.stderr
1 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
2   --> $DIR/rc_mutex.rs:8:10
3    |
4 LL |     foo: Rc<Mutex<i32>>,
5    |          ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::rc-mutex` implied by `-D warnings`
8
9 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
10   --> $DIR/rc_mutex.rs:20:22
11    |
12 LL | pub fn test1<T>(foo: Rc<Mutex<T>>) {}
13    |                      ^^^^^^^^^^^^
14
15 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
16   --> $DIR/rc_mutex.rs:22:19
17    |
18 LL | pub fn test2(foo: Rc<Mutex<MyEnum>>) {}
19    |                   ^^^^^^^^^^^^^^^^^
20
21 error: found `Rc<Mutex<_>>`. Consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
22   --> $DIR/rc_mutex.rs:24:19
23    |
24 LL | pub fn test3(foo: Rc<Mutex<SubT<usize>>>) {}
25    |                   ^^^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 4 previous errors
28