]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0599]: no method named `test_mut` found for struct `Vec<{integer}>` in the current scope |
0731742a | 2 | --> $DIR/auto-ref-slice-plus-ref.rs:7:7 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | a.test_mut(); |
f2b60f7d | 5 | | ^^^^^^^^ help: there is a method with a similar name: `get_mut` |
b7449926 XL |
6 | | |
7 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
8 | note: `MyIter` defines an item `test_mut`, perhaps you need to implement it |
9 | --> $DIR/auto-ref-slice-plus-ref.rs:14:1 | |
10 | | | |
11 | LL | trait MyIter { | |
12 | | ^^^^^^^^^^^^ | |
b7449926 | 13 | |
1b1a35ee | 14 | error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the current scope |
0731742a | 15 | --> $DIR/auto-ref-slice-plus-ref.rs:8:7 |
b7449926 | 16 | | |
532ac7d7 | 17 | LL | a.test(); |
1b1a35ee | 18 | | ^^^^ method not found in `Vec<{integer}>` |
b7449926 XL |
19 | | |
20 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
21 | note: `MyIter` defines an item `test`, perhaps you need to implement it |
22 | --> $DIR/auto-ref-slice-plus-ref.rs:14:1 | |
23 | | | |
24 | LL | trait MyIter { | |
25 | | ^^^^^^^^^^^^ | |
b7449926 | 26 | |
dfeec247 | 27 | error[E0599]: no method named `test` found for array `[{integer}; 1]` in the current scope |
0731742a | 28 | --> $DIR/auto-ref-slice-plus-ref.rs:10:11 |
b7449926 | 29 | | |
532ac7d7 | 30 | LL | ([1]).test(); |
e1599b0c | 31 | | ^^^^ method not found in `[{integer}; 1]` |
b7449926 XL |
32 | | |
33 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
34 | note: `MyIter` defines an item `test`, perhaps you need to implement it |
35 | --> $DIR/auto-ref-slice-plus-ref.rs:14:1 | |
36 | | | |
37 | LL | trait MyIter { | |
38 | | ^^^^^^^^^^^^ | |
b7449926 | 39 | |
dfeec247 | 40 | error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in the current scope |
0731742a | 41 | --> $DIR/auto-ref-slice-plus-ref.rs:11:12 |
b7449926 | 42 | | |
532ac7d7 | 43 | LL | (&[1]).test(); |
e1599b0c | 44 | | ^^^^ method not found in `&[{integer}; 1]` |
b7449926 XL |
45 | | |
46 | = help: items from traits can only be used if the trait is implemented and in scope | |
74b04a01 XL |
47 | note: `MyIter` defines an item `test`, perhaps you need to implement it |
48 | --> $DIR/auto-ref-slice-plus-ref.rs:14:1 | |
49 | | | |
50 | LL | trait MyIter { | |
51 | | ^^^^^^^^^^^^ | |
b7449926 XL |
52 | |
53 | error: aborting due to 4 previous errors | |
54 | ||
55 | For more information about this error, try `rustc --explain E0599`. |