]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-ref-slice-plus-ref.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / auto-ref-slice-plus-ref.stderr
1 error[E0599]: no method named `test_mut` found for type `std::vec::Vec<{integer}>` in the current scope
2   --> $DIR/auto-ref-slice-plus-ref.rs:18:7
3    |
4 LL |     a.test_mut(); //~ ERROR no method named `test_mut` found
5    |       ^^^^^^^^
6    |
7    = help: items from traits can only be used if the trait is implemented and in scope
8    = note: the following trait defines an item `test_mut`, perhaps you need to implement it:
9            candidate #1: `MyIter`
10    = help: did you mean `get_mut`?
11
12 error[E0599]: no method named `test` found for type `std::vec::Vec<{integer}>` in the current scope
13   --> $DIR/auto-ref-slice-plus-ref.rs:19:7
14    |
15 LL |     a.test(); //~ ERROR no method named `test` found
16    |       ^^^^
17    |
18    = help: items from traits can only be used if the trait is implemented and in scope
19    = note: the following trait defines an item `test`, perhaps you need to implement it:
20            candidate #1: `MyIter`
21
22 error[E0599]: no method named `test` found for type `[{integer}; 1]` in the current scope
23   --> $DIR/auto-ref-slice-plus-ref.rs:21:11
24    |
25 LL |     ([1]).test(); //~ ERROR no method named `test` found
26    |           ^^^^
27    |
28    = help: items from traits can only be used if the trait is implemented and in scope
29    = note: the following trait defines an item `test`, perhaps you need to implement it:
30            candidate #1: `MyIter`
31
32 error[E0599]: no method named `test` found for type `&[{integer}; 1]` in the current scope
33   --> $DIR/auto-ref-slice-plus-ref.rs:22:12
34    |
35 LL |     (&[1]).test(); //~ ERROR no method named `test` found
36    |            ^^^^
37    |
38    = help: items from traits can only be used if the trait is implemented and in scope
39    = note: the following trait defines an item `test`, perhaps you need to implement it:
40            candidate #1: `MyIter`
41
42 error: aborting due to 4 previous errors
43
44 For more information about this error, try `rustc --explain E0599`.