]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-ref-slice-plus-ref.stderr
Mention the full path of the implementing trait
[rust.git] / src / test / ui / auto-ref-slice-plus-ref.stderr
1 error[E0599]: no method named `test_mut` found for struct `std::vec::Vec<{integer}>` in the current scope
2   --> $DIR/auto-ref-slice-plus-ref.rs:7:7
3    |
4 LL |     a.test_mut();
5    |       ^^^^^^^^ help: there is a method with a similar name: `get_mut`
6 ...
7 LL | trait MyIter {
8    | ------------ `MyIter` defines an item `test_mut`
9    |
10    = help: items from traits can only be used if the trait is implemented and in scope
11
12 error[E0599]: no method named `test` found for struct `std::vec::Vec<{integer}>` in the current scope
13   --> $DIR/auto-ref-slice-plus-ref.rs:8:7
14    |
15 LL |     a.test();
16    |       ^^^^ method not found in `std::vec::Vec<{integer}>`
17 ...
18 LL | trait MyIter {
19    | ------------ `MyIter` defines an item `test`
20    |
21    = help: items from traits can only be used if the trait is implemented and in scope
22
23 error[E0599]: no method named `test` found for array `[{integer}; 1]` in the current scope
24   --> $DIR/auto-ref-slice-plus-ref.rs:10:11
25    |
26 LL |     ([1]).test();
27    |           ^^^^ method not found in `[{integer}; 1]`
28 ...
29 LL | trait MyIter {
30    | ------------ `MyIter` defines an item `test`
31    |
32    = help: items from traits can only be used if the trait is implemented and in scope
33
34 error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in the current scope
35   --> $DIR/auto-ref-slice-plus-ref.rs:11:12
36    |
37 LL |     (&[1]).test();
38    |            ^^^^ method not found in `&[{integer}; 1]`
39 ...
40 LL | trait MyIter {
41    | ------------ `MyIter` defines an item `test`
42    |
43    = help: items from traits can only be used if the trait is implemented and in scope
44
45 error: aborting due to 4 previous errors
46
47 For more information about this error, try `rustc --explain E0599`.