summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/rc_buffer.stderr
blob: 9ed028e3df41bf78e3f7c4d7f75cfe098ffa4b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:12:11
   |
LL |     bad1: Rc<String>,
   |           ^^^^^^^^^^ help: try: `Rc<str>`
   |
   = note: `-D clippy::rc-buffer` implied by `-D warnings`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:13:11
   |
LL |     bad2: Rc<PathBuf>,
   |           ^^^^^^^^^^^ help: try: `Rc<std::path::Path>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:14:11
   |
LL |     bad3: Rc<Vec<u8>>,
   |           ^^^^^^^^^^^ help: try: `Rc<[u8]>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:15:11
   |
LL |     bad4: Rc<OsString>,
   |           ^^^^^^^^^^^^ help: try: `Rc<std::ffi::OsStr>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:21:17
   |
LL | fn func_bad1(_: Rc<String>) {}
   |                 ^^^^^^^^^^ help: try: `Rc<str>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:22:17
   |
LL | fn func_bad2(_: Rc<PathBuf>) {}
   |                 ^^^^^^^^^^^ help: try: `Rc<std::path::Path>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:23:17
   |
LL | fn func_bad3(_: Rc<Vec<u8>>) {}
   |                 ^^^^^^^^^^^ help: try: `Rc<[u8]>`

error: usage of `Rc<T>` when T is a buffer type
  --> $DIR/rc_buffer.rs:24:17
   |
LL | fn func_bad4(_: Rc<OsString>) {}
   |                 ^^^^^^^^^^^^ help: try: `Rc<std::ffi::OsStr>`

error: aborting due to 8 previous errors