error[E0308]: mismatched types --> $DIR/main.rs:7:9 | LL | let () = dep::Renamed; | ^^ ------------ this expression has type `Renamed` | | | expected `Renamed`, found `()` error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.