]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-std-when-using-type.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / suggest-std-when-using-type.stderr
1 error[E0223]: ambiguous associated type
2   --> $DIR/suggest-std-when-using-type.rs:2:14
3    |
4 LL |     let pi = f32::consts::PI;
5    |              ^^^^^^^^^^^
6    |
7 help: you are looking for the module in `std`, not the primitive type
8    |
9 LL |     let pi = std::f32::consts::PI;
10    |              ~~~~~~~~~~~~~~~~
11
12 error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
13   --> $DIR/suggest-std-when-using-type.rs:5:14
14    |
15 LL |         str::from_utf8(bytes)
16    |              ^^^^^^^^^ function or associated item not found in `str`
17    |
18 help: you are looking for the module in `std`, not the primitive type
19    |
20 LL |         std::str::from_utf8(bytes)
21    |         ~~~~~~~~~~~~~~~~~~~
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0223, E0599.
26 For more information about an error, try `rustc --explain E0223`.