]> git.lizzy.rs Git - rust.git/blob - tests/ui/rc_mutex.stderr
removing unsafe from test fn's && renaming shrink to sugg_span
[rust.git] / tests / ui / rc_mutex.stderr
1 error: usage of `Rc<Mutex<_>>`
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    = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
9
10 error: usage of `Rc<Mutex<_>>`
11   --> $DIR/rc_mutex.rs:26:18
12    |
13 LL | fn test1<T>(foo: Rc<Mutex<T>>) {}
14    |                  ^^^^^^^^^^^^
15    |
16    = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
17
18 error: usage of `Rc<Mutex<_>>`
19   --> $DIR/rc_mutex.rs:27:15
20    |
21 LL | fn test2(foo: Rc<Mutex<MyEnum>>) {}
22    |               ^^^^^^^^^^^^^^^^^
23    |
24    = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
25
26 error: usage of `Rc<Mutex<_>>`
27   --> $DIR/rc_mutex.rs:28:15
28    |
29 LL | fn test3(foo: Rc<Mutex<SubT<usize>>>) {}
30    |               ^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead
33
34 error: aborting due to 4 previous errors
35