]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-std-when-using-type.fixed
Tweak use of trimmed paths
[rust.git] / tests / ui / suggestions / suggest-std-when-using-type.fixed
1 // run-rustfix
2 fn main() {
3     let pi = std::f32::consts::PI; //~ ERROR ambiguous associated type
4     let bytes = "hello world".as_bytes();
5     let string = std::str::from_utf8(bytes).unwrap();
6     //~^ ERROR no function or associated item named `from_utf8` found
7     println!("{pi} {bytes:?} {string}");
8 }