|
1 | 1 | error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in the current scope
|
2 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:7:7 |
| 2 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:6:7 |
3 | 3 | |
|
4 | 4 | LL | a.test_mut();
|
5 | 5 | | ^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = help: items from traits can only be used if the trait is implemented and in scope
|
8 | 8 | note: `MyIter` defines an item `test_mut`, perhaps you need to implement it
|
9 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:14:1 |
| 9 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:13:1 |
10 | 10 | |
|
11 | 11 | LL | trait MyIter {
|
12 | 12 | | ^^^^^^^^^^^^
|
13 | 13 | help: there is a method `get_mut` with a similar name, but with different arguments
|
14 | 14 | --> $SRC_DIR/core/src/slice/mod.rs:LL:COL
|
15 | 15 |
|
16 | 16 | error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the current scope
|
17 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:8:7 |
| 17 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:7:7 |
18 | 18 | |
|
19 | 19 | LL | a.test();
|
20 | 20 | | ^^^^ method not found in `Vec<{integer}>`
|
21 | 21 | |
|
22 | 22 | = help: items from traits can only be used if the trait is implemented and in scope
|
23 | 23 | note: `MyIter` defines an item `test`, perhaps you need to implement it
|
24 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:14:1 |
| 24 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:13:1 |
25 | 25 | |
|
26 | 26 | LL | trait MyIter {
|
27 | 27 | | ^^^^^^^^^^^^
|
28 | 28 |
|
29 | 29 | error[E0599]: no method named `test` found for array `[{integer}; 1]` in the current scope
|
30 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:10:11 |
| 30 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:9:11 |
31 | 31 | |
|
32 | 32 | LL | ([1]).test();
|
33 | 33 | | ^^^^ method not found in `[{integer}; 1]`
|
34 | 34 | |
|
35 | 35 | = help: items from traits can only be used if the trait is implemented and in scope
|
36 | 36 | note: `MyIter` defines an item `test`, perhaps you need to implement it
|
37 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:14:1 |
| 37 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:13:1 |
38 | 38 | |
|
39 | 39 | LL | trait MyIter {
|
40 | 40 | | ^^^^^^^^^^^^
|
41 | 41 |
|
42 | 42 | error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in the current scope
|
43 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:11:12 |
| 43 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:10:12 |
44 | 44 | |
|
45 | 45 | LL | (&[1]).test();
|
46 | 46 | | ^^^^ method not found in `&[{integer}; 1]`
|
47 | 47 | |
|
48 | 48 | = help: items from traits can only be used if the trait is implemented and in scope
|
49 | 49 | note: `MyIter` defines an item `test`, perhaps you need to implement it
|
50 |
| - --> $DIR/auto-ref-slice-plus-ref.rs:14:1 |
| 50 | + --> $DIR/no-auto-borrow-vec-to-slice.rs:13:1 |
51 | 51 | |
|
52 | 52 | LL | trait MyIter {
|
53 | 53 | | ^^^^^^^^^^^^
|
|
0 commit comments