@@ -4,7 +4,11 @@ error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in th
4
4
LL | a.test_mut();
5
5
| ^^^^^^^^
6
6
|
7
- = help: items from traits can only be used if the trait is implemented and in scope
7
+ help: items from traits can only be used if the trait is implemented and in scope
8
+ --> $DIR/auto-ref-slice-plus-ref.rs:7:7
9
+ |
10
+ LL | a.test_mut();
11
+ | ^^^^^^^^
8
12
note: `MyIter` defines an item `test_mut`, perhaps you need to implement it
9
13
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
10
14
|
@@ -19,7 +23,11 @@ error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the cu
19
23
LL | a.test();
20
24
| ^^^^ method not found in `Vec<{integer}>`
21
25
|
22
- = help: items from traits can only be used if the trait is implemented and in scope
26
+ help: items from traits can only be used if the trait is implemented and in scope
27
+ --> $DIR/auto-ref-slice-plus-ref.rs:8:7
28
+ |
29
+ LL | a.test();
30
+ | ^^^^
23
31
note: `MyIter` defines an item `test`, perhaps you need to implement it
24
32
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
25
33
|
@@ -32,7 +40,11 @@ error[E0599]: no method named `test` found for array `[{integer}; 1]` in the cur
32
40
LL | ([1]).test();
33
41
| ^^^^ method not found in `[{integer}; 1]`
34
42
|
35
- = help: items from traits can only be used if the trait is implemented and in scope
43
+ help: items from traits can only be used if the trait is implemented and in scope
44
+ --> $DIR/auto-ref-slice-plus-ref.rs:10:11
45
+ |
46
+ LL | ([1]).test();
47
+ | ^^^^
36
48
note: `MyIter` defines an item `test`, perhaps you need to implement it
37
49
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
38
50
|
@@ -45,7 +57,11 @@ error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in th
45
57
LL | (&[1]).test();
46
58
| ^^^^ method not found in `&[{integer}; 1]`
47
59
|
48
- = help: items from traits can only be used if the trait is implemented and in scope
60
+ help: items from traits can only be used if the trait is implemented and in scope
61
+ --> $DIR/auto-ref-slice-plus-ref.rs:11:12
62
+ |
63
+ LL | (&[1]).test();
64
+ | ^^^^
49
65
note: `MyIter` defines an item `test`, perhaps you need to implement it
50
66
--> $DIR/auto-ref-slice-plus-ref.rs:14:1
51
67
|
0 commit comments