]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/redundant_allocation.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / redundant_allocation.stderr
1 error: usage of `Rc<&T>`
2   --> $DIR/redundant_allocation.rs:22:22
3    |
4 LL | pub fn test1<T>(foo: Rc<&T>) {}
5    |                      ^^^^^^ help: try: `&T`
6    |
7    = note: `-D clippy::redundant-allocation` implied by `-D warnings`
8
9 error: usage of `Rc<&T>`
10   --> $DIR/redundant_allocation.rs:24:19
11    |
12 LL | pub fn test2(foo: Rc<&MyStruct>) {}
13    |                   ^^^^^^^^^^^^^ help: try: `&MyStruct`
14
15 error: usage of `Rc<&T>`
16   --> $DIR/redundant_allocation.rs:26:19
17    |
18 LL | pub fn test3(foo: Rc<&MyEnum>) {}
19    |                   ^^^^^^^^^^^ help: try: `&MyEnum`
20
21 error: usage of `Rc<Rc<T>>`
22   --> $DIR/redundant_allocation.rs:32:17
23    |
24 LL | pub fn test5(a: Rc<Rc<bool>>) {}
25    |                 ^^^^^^^^^^^^ help: try: `Rc<bool>`
26
27 error: usage of `Rc<Box<T>>`
28   --> $DIR/redundant_allocation.rs:36:17
29    |
30 LL | pub fn test6(a: Rc<Box<bool>>) {}
31    |                 ^^^^^^^^^^^^^ help: try: `Rc<bool>`
32
33 error: usage of `Box<&T>`
34   --> $DIR/redundant_allocation.rs:40:22
35    |
36 LL | pub fn test7<T>(foo: Box<&T>) {}
37    |                      ^^^^^^^ help: try: `&T`
38
39 error: usage of `Box<&T>`
40   --> $DIR/redundant_allocation.rs:42:19
41    |
42 LL | pub fn test8(foo: Box<&MyStruct>) {}
43    |                   ^^^^^^^^^^^^^^ help: try: `&MyStruct`
44
45 error: usage of `Box<&T>`
46   --> $DIR/redundant_allocation.rs:44:19
47    |
48 LL | pub fn test9(foo: Box<&MyEnum>) {}
49    |                   ^^^^^^^^^^^^ help: try: `&MyEnum`
50
51 error: aborting due to 8 previous errors
52