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); }