fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.9 KiB43 linesraw
1error[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:7:7
3   |
4LL |     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: the following trait defines an item `test_mut`, perhaps you need to implement it:
9           candidate #1: `MyIter`
10
11error[E0599]: no method named `test` found for type `std::vec::Vec<{integer}>` in the current scope
12  --> $DIR/auto-ref-slice-plus-ref.rs:8:7
13   |
14LL |     a.test();
15   |       ^^^^ method not found in `std::vec::Vec<{integer}>`
16   |
17   = help: items from traits can only be used if the trait is implemented and in scope
18   = note: the following trait defines an item `test`, perhaps you need to implement it:
19           candidate #1: `MyIter`
20
21error[E0599]: no method named `test` found for type `[{integer}; 1]` in the current scope
22  --> $DIR/auto-ref-slice-plus-ref.rs:10:11
23   |
24LL |     ([1]).test();
25   |           ^^^^ method not found in `[{integer}; 1]`
26   |
27   = help: items from traits can only be used if the trait is implemented and in scope
28   = note: the following trait defines an item `test`, perhaps you need to implement it:
29           candidate #1: `MyIter`
30
31error[E0599]: no method named `test` found for type `&[{integer}; 1]` in the current scope
32  --> $DIR/auto-ref-slice-plus-ref.rs:11:12
33   |
34LL |     (&[1]).test();
35   |            ^^^^ method not found in `&[{integer}; 1]`
36   |
37   = help: items from traits can only be used if the trait is implemented and in scope
38   = note: the following trait defines an item `test`, perhaps you need to implement it:
39           candidate #1: `MyIter`
40
41error: aborting due to 4 previous errors
42
43For more information about this error, try `rustc --explain E0599`.