diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-09-28 22:03:39 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-09-28 22:04:15 +0000 |
| commit | 7bb594f00ea563d19c23cb70382c66b35c182561 (patch) | |
| tree | 9362bd9662664d59e0856bbeb8ac0725d598b33a /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | dd91aba2fdd8e3b6d9248a401bd6eb2f8d445cdf (diff) | |
| download | rust-7bb594f00ea563d19c23cb70382c66b35c182561.tar.gz rust-7bb594f00ea563d19c23cb70382c66b35c182561.zip | |
On type error of closure call argument, point at earlier calls that affected inference
Mitigate part of #71209. ``` error[E0308]: mismatched types --> $DIR/unboxed-closures-type-mismatch.rs:30:18 | LL | identity(1u16); | -------- ^^^^ expected `u8`, found `u16` | | | arguments to this function are incorrect | note: expected because the closure was earlier called with an argument of type `u8` --> $DIR/unboxed-closures-type-mismatch.rs:29:18 | LL | identity(1u8); | -------- ^^^ expected because this argument is of type `u8` | | | in this closure call note: closure parameter defined here --> $DIR/unboxed-closures-type-mismatch.rs:28:25 | LL | let identity = |x| x; | ^ help: change the type of the numeric literal from `u16` to `u8` | LL | identity(1u8); | ~~ ```
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
