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