summaryrefslogtreecommitdiffstats
path: root/src/test/ui/did_you_mean/use_instead_of_import.fixed
blob: a8aae76f4fcb3775a04dcee6970ef4e1e0b03272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// run-rustfix

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

use std::time::Duration;
//~^ ERROR expected item, found `require`

use std::time::Instant;
//~^ ERROR expected item, found `include`

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

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