]> git.lizzy.rs Git - rust.git/blob - tests/ui/auto-ref-slice-plus-ref.stderr
Rollup merge of #107740 - oli-obk:lock_tcx, r=petrochenkov
[rust.git] / tests / ui / auto-ref-slice-plus-ref.stderr
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
3    |
4 LL |     a.test_mut();
5    |       ^^^^^^^^ help: there is a method with a similar name: `get_mut`
6    |
7    = help: items from traits can only be used if the trait is implemented and in scope
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    | ^^^^^^^^^^^^
13
14 error[E0599]: no method named `test` found for struct `Vec<{integer}>` in the current scope
15   --> $DIR/auto-ref-slice-plus-ref.rs:8:7
16    |
17 LL |     a.test();
18    |       ^^^^ method not found in `Vec<{integer}>`
19    |
20    = help: items from traits can only be used if the trait is implemented and in scope
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    | ^^^^^^^^^^^^
26
27 error[E0599]: no method named `test` found for array `[{integer}; 1]` in the current scope
28   --> $DIR/auto-ref-slice-plus-ref.rs:10:11
29    |
30 LL |     ([1]).test();
31    |           ^^^^ method not found in `[{integer}; 1]`
32    |
33    = help: items from traits can only be used if the trait is implemented and in scope
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    | ^^^^^^^^^^^^
39
40 error[E0599]: no method named `test` found for reference `&[{integer}; 1]` in the current scope
41   --> $DIR/auto-ref-slice-plus-ref.rs:11:12
42    |
43 LL |     (&[1]).test();
44    |            ^^^^ method not found in `&[{integer}; 1]`
45    |
46    = help: items from traits can only be used if the trait is implemented and in scope
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    | ^^^^^^^^^^^^
52
53 error: aborting due to 4 previous errors
54
55 For more information about this error, try `rustc --explain E0599`.