]> git.proxmox.com Git - rustc.git/blame - src/test/ui/auto-ref-slice-plus-ref.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / auto-ref-slice-plus-ref.stderr
CommitLineData
1b1a35ee 1error[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 4LL | a.test_mut();
ba9703b0 5 | ^^^^^^^^ help: there is an associated function 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
8note: `MyIter` defines an item `test_mut`, perhaps you need to implement it
9 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
10 |
11LL | trait MyIter {
12 | ^^^^^^^^^^^^
b7449926 13
1b1a35ee 14error[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 17LL | 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
21note: `MyIter` defines an item `test`, perhaps you need to implement it
22 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
23 |
24LL | trait MyIter {
25 | ^^^^^^^^^^^^
b7449926 26
dfeec247 27error[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 30LL | ([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
34note: `MyIter` defines an item `test`, perhaps you need to implement it
35 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
36 |
37LL | trait MyIter {
38 | ^^^^^^^^^^^^
b7449926 39
dfeec247 40error[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 43LL | (&[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
47note: `MyIter` defines an item `test`, perhaps you need to implement it
48 --> $DIR/auto-ref-slice-plus-ref.rs:14:1
49 |
50LL | trait MyIter {
51 | ^^^^^^^^^^^^
b7449926
XL
52
53error: aborting due to 4 previous errors
54
55For more information about this error, try `rustc --explain E0599`.