2021-03-22 23:26:07 +00:00
|
|
|
error[E0308]: mismatched types
|
2022-07-19 02:25:14 +03:00
|
|
|
--> $DIR/mismatch.rs:7:26
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let e: Example<13> = ();
|
2023-01-02 18:00:33 -08:00
|
|
|
| ----------- ^^ expected `Example`, found `()`
|
2021-03-29 17:32:27 +09:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2021-05-29 05:37:45 +01:00
|
|
|
|
|
|
|
|
= note: expected struct `Example`
|
|
|
|
found unit type `()`
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-19 02:25:14 +03:00
|
|
|
--> $DIR/mismatch.rs:10:32
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let e: Example2<u32, 13> = ();
|
2023-01-02 18:00:33 -08:00
|
|
|
| ----------------- ^^ expected `Example2`, found `()`
|
2021-03-29 17:32:27 +09:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
|
|
|
= note: expected struct `Example2`
|
|
|
|
found unit type `()`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-19 02:25:14 +03:00
|
|
|
--> $DIR/mismatch.rs:13:32
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let e: Example3<13, u32> = ();
|
2023-01-02 18:00:33 -08:00
|
|
|
| ----------------- ^^ expected `Example3`, found `()`
|
2021-03-29 17:32:27 +09:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
|
|
|
= note: expected struct `Example3`
|
|
|
|
found unit type `()`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-19 02:25:14 +03:00
|
|
|
--> $DIR/mismatch.rs:16:26
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let e: Example3<7> = ();
|
2023-01-02 18:00:33 -08:00
|
|
|
| ----------- ^^ expected `Example3<7>`, found `()`
|
2021-03-29 17:32:27 +09:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
= note: expected struct `Example3<7>`
|
2021-03-22 23:26:07 +00:00
|
|
|
found unit type `()`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-19 02:25:14 +03:00
|
|
|
--> $DIR/mismatch.rs:19:26
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let e: Example4<7> = ();
|
2023-01-02 18:00:33 -08:00
|
|
|
| ----------- ^^ expected `Example4<7>`, found `()`
|
2021-03-29 17:32:27 +09:00
|
|
|
| |
|
|
|
|
| expected due to this
|
2021-05-29 05:37:45 +01:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
= note: expected struct `Example4<7>`
|
2021-05-29 05:37:45 +01:00
|
|
|
found unit type `()`
|
2021-03-22 23:26:07 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|