error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:15:25 | LL | let _: Foo = (); | ---------- ^^ expected `Foo`, found `()` | | | expected due to this | = note: expected struct `Foo` found unit type `()` error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:22:31 | LL | let _: Foo = (); | ---------------- ^^ expected `Foo`, found `()` | | | expected due to this | = note: expected struct `Foo` found unit type `()` error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:29:37 | LL | let _: HashMap = (); | ---------------------- ^^ expected `HashMap`, found `()` | | | expected due to this | = note: expected struct `HashMap` found unit type `()` error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:34:51 | LL | let _: HashMap> = (); | ------------------------------------ ^^ expected `HashMap`, found `()` | | | expected due to this | = note: expected struct `HashMap` found unit type `()` error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:41:31 | LL | let _: Foo = (); | ---------------- ^^ expected `Foo`, found `()` | | | expected due to this | = note: expected struct `Foo` found unit type `()` error[E0308]: mismatched types --> $DIR/generic-type-params-name-repr.rs:48:27 | LL | let _: Foo = (); | ------------ ^^ expected `Foo`, found `()` | | | expected due to this | = note: expected struct `Foo` found unit type `()` error: aborting due to 6 previous errors For more information about this error, try `rustc --explain E0308`.