blob: 2db7c24075219f06c91a7d17e6113b5941fedf4d (
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
import std::{
//~^ ERROR expected item, found `import`
io::Write,
rc::Rc,
};
require std::time::Duration;
//~^ ERROR expected item, found `require`
include std::time::Instant;
//~^ ERROR expected item, found `include`
pub using 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();
}
|