summaryrefslogtreecommitdiffstats
path: root/src/test/ui/did_you_mean/use_instead_of_import.fixed
blob: 87d453e1565c5249a967abf95c59e1c1cac5b5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-rustfix

use std::{
    //~^ ERROR expected item, found `import`
    io::Write,
    rc::Rc,
};

pub use std::io;
//~^ ERROR expected item, found `using`

fn main() {
    let x = Rc::new(1);
    let _ = write!(io::stdout(), "{:?}", x);
}