rust/tests/ui/pptypedef.stderr

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

30 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/pptypedef.rs:4:37
2018-08-08 07:28:26 -05:00
|
LL | let_in(3u32, |i| { assert!(i == 3i32); });
| - ^^^^ expected `u32`, found `i32`
| |
| expected because this is `u32`
|
2019-04-21 17:44:23 -05:00
help: change the type of the numeric literal from `i32` to `u32`
|
LL | let_in(3u32, |i| { assert!(i == 3u32); });
| ~~~
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/pptypedef.rs:8:37
2018-08-08 07:28:26 -05:00
|
LL | let_in(3i32, |i| { assert!(i == 3u32); });
| - ^^^^ expected `i32`, found `u32`
| |
| expected because this is `i32`
|
2019-04-21 17:44:23 -05:00
help: change the type of the numeric literal from `u32` to `i32`
|
LL | let_in(3i32, |i| { assert!(i == 3i32); });
| ~~~
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.