error[E0429]: `self` imports are only allowed within a { } list --> $DIR/E0429.rs:11:5 | LL | use std::fmt::self; //~ ERROR E0429 | ^^^^^^^^^^^^^^ error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0429"