summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-std-when-using-type.fixed
blob: 102c5c1868fbfea14ba2e5e485e04e45b48c35c8 (plain)
1
2
3
4
5
6
7
8
// run-rustfix
fn main() {
    let pi = std::f32::consts::PI; //~ ERROR ambiguous associated type
    let bytes = "hello world".as_bytes();
    let string = std::str::from_utf8(bytes).unwrap();
    //~^ ERROR no function or associated item named `from_utf8` found
    println!("{pi} {bytes:?} {string}");
}