rust/src/test/ui/numeric/len.stderr
Esteban Küber 0baf61bfdb Increase spacing for suggestions in diagnostics
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00

15 lines
439 B
Plaintext

error[E0308]: mismatched types
--> $DIR/len.rs:3:10
|
LL | test(array.len());
| ^^^^^^^^^^^ expected u32, found usize
|
help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
|
LL | test(array.len().try_into().unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.