|
1 | 1 | error[E0599]: no method named `read` found for struct `Vec<u8>` in the current scope
|
2 |
| - --> $DIR/dont-suggest-private-dependencies.rs:17:16 |
| 2 | + --> $DIR/dont-suggest-private-dependencies.rs:24:16 |
3 | 3 | |
|
4 | 4 | LL | self.0.read(buf)
|
5 | 5 | | ^^^^
|
6 | 6 | |
|
7 |
| - = help: items from traits can only be used if the trait is in scope |
8 |
| -help: trait `ReadRef` which provides `read` is implemented but not in scope; perhaps you want to import it |
| 7 | +help: there is a method `read1` with a similar name, but with different arguments |
| 8 | + --> $DIR/dont-suggest-private-dependencies.rs:16:5 |
9 | 9 | |
|
10 |
| -LL + use object::read::read_ref::ReadRef; |
11 |
| - | |
12 |
| -help: there is a method `read_at` with a similar name |
13 |
| - | |
14 |
| -LL | self.0.read_at(buf) |
15 |
| - | +++ |
| 10 | +LL | fn read1(&self) {} |
| 11 | + | ^^^^^^^^^^^^^^^ |
16 | 12 |
|
17 | 13 | error[E0599]: no function or associated item named `cast_from_lossy` found for type `u8` in the current scope
|
18 |
| - --> $DIR/dont-suggest-private-dependencies.rs:26:17 |
| 14 | + --> $DIR/dont-suggest-private-dependencies.rs:33:17 |
19 | 15 | |
|
20 | 16 | LL | let _ = u8::cast_from_lossy(9);
|
21 | 17 | | ^^^^^^^^^^^^^^^ function or associated item not found in `u8`
|
22 |
| - | |
23 |
| - = help: items from traits can only be used if the trait is in scope |
24 |
| -help: trait `CastFrom` which provides `cast_from_lossy` is implemented but not in scope; perhaps you want to import it |
25 |
| - | |
26 |
| -LL + use compiler_builtins::math::libm_math::support::int_traits::CastFrom; |
27 |
| - | |
28 | 18 |
|
29 | 19 | error[E0599]: no function or associated item named `foo` found for struct `B` in the current scope
|
30 |
| - --> $DIR/dont-suggest-private-dependencies.rs:28:16 |
| 20 | + --> $DIR/dont-suggest-private-dependencies.rs:35:16 |
31 | 21 | |
|
32 | 22 | LL | let _ = B::foo();
|
33 | 23 | | ^^^ function or associated item not found in `B`
|
34 |
| - | |
35 |
| - = help: items from traits can only be used if the trait is in scope |
36 |
| -help: trait `A` which provides `foo` is implemented but not in scope; perhaps you want to import it |
37 |
| - | |
38 |
| -LL + use private_dep::A; |
39 |
| - | |
40 | 24 |
|
41 | 25 | error: aborting due to 3 previous errors
|
42 | 26 |
|
|
0 commit comments