os-rust/src/test/ui/inference/tutorial-suffix-inference-test.stderr

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

37 lines
1.1 KiB
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/tutorial-suffix-inference-test.rs:9:18
2018-08-08 14:28:26 +02:00
|
LL | identity_u16(x);
| ^ expected `u16`, found `u8`
|
help: you can convert a `u8` to a `u16`
|
LL | identity_u16(x.into());
| +++++++
2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/tutorial-suffix-inference-test.rs:12:18
2018-08-08 14:28:26 +02:00
|
LL | identity_u16(y);
| ^ expected `u16`, found `i32`
|
help: you can convert an `i32` to a `u16` and panic if the converted value doesn't fit
2019-04-21 15:44:23 -07:00
|
LL | identity_u16(y.try_into().unwrap());
| ++++++++++++++++++++
2018-08-08 14:28:26 +02:00
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/tutorial-suffix-inference-test.rs:21:18
2018-08-08 14:28:26 +02:00
|
LL | identity_u16(a);
| ^ expected `u16`, found `isize`
|
help: you can convert an `isize` to a `u16` and panic if the converted value doesn't fit
2019-04-21 15:44:23 -07:00
|
LL | identity_u16(a.try_into().unwrap());
| ++++++++++++++++++++
2018-08-08 14:28:26 +02:00
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.