@@ -4,7 +4,11 @@ error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in th
44LL | a.test_mut();
55 | ^^^^^^^^
66 |
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+ | ^^^^^^^^
812note: `MyIter` defines an item `test_mut`, perhaps you need to implement it
913 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
1014 |
@@ -19,7 +23,11 @@ error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the cu
1923LL | a.test();
2024 | ^^^^ method not found in `Vec<{integer}>`
2125 |
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+ | ^^^^
2331note: `MyIter` defines an item `test`, perhaps you need to implement it
2432 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
2533 |
@@ -32,7 +40,11 @@ error[E0599]: no method named `test` found for array `[{integer}; 1]` in the cur
3240LL | ([1]).test();
3341 | ^^^^ method not found in `[{integer}; 1]`
3442 |
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+ | ^^^^
3648note: `MyIter` defines an item `test`, perhaps you need to implement it
3749 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
3850 |
@@ -45,7 +57,11 @@ error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in th
4557LL | (&[1]).test();
4658 | ^^^^ method not found in `&[{integer}; 1]`
4759 |
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+ | ^^^^
4965note: `MyIter` defines an item `test`, perhaps you need to implement it
5066 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
5167 |
0 commit comments