1
Fork 0

Point at type in let assignment on type errors

This commit is contained in:
Esteban Küber 2019-11-18 21:00:24 -08:00
parent f11759d38c
commit 34f03c01f6
101 changed files with 684 additions and 354 deletions

View file

@ -2,13 +2,17 @@ error[E0308]: mismatched types
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24
|
LL | let _seetype: () = z;
| ^ expected `()`, found `u32`
| -- ^ expected `()`, found `u32`
| |
| expected due to this
error[E0308]: mismatched types
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24
|
LL | let _seetype: () = z;
| ^ expected `()`, found `u64`
| -- ^ expected `()`, found `u64`
| |
| expected due to this
error[E0034]: multiple applicable items in scope
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15
@ -39,19 +43,25 @@ error[E0308]: mismatched types
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24
|
LL | let _seetype: () = z;
| ^ expected `()`, found `u8`
| -- ^ expected `()`, found `u8`
| |
| expected due to this
error[E0308]: mismatched types
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
|
LL | let _seetype: () = z;
| ^ expected `()`, found `u32`
| -- ^ expected `()`, found `u32`
| |
| expected due to this
error[E0308]: mismatched types
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
|
LL | let _seetype: () = z;
| ^ expected `()`, found `u32`
| -- ^ expected `()`, found `u32`
| |
| expected due to this
error: aborting due to 6 previous errors