Files
rust/tests/ui/meta/expected-error-correct-rev.a.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
484 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
--> $DIR/expected-error-correct-rev.rs:7:18
2018-08-08 14:28:26 +02:00
|
LL | let x: u32 = 22_usize;
| --- ^^^^^^^^ expected `u32`, found `usize`
| |
| expected due to this
|
2019-04-21 15:44:23 -07:00
help: change the type of the numeric literal from `usize` to `u32`
|
LL - let x: u32 = 22_usize;
LL + let x: u32 = 22_u32;
|
2018-08-08 14:28:26 +02:00
error: aborting due to 1 previous error
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0308`.