fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
520 B15 linesraw
1error[E0308]: `?` operator has incompatible types
2  --> $DIR/issue-71309.rs:2:18
3   |
4LL |     let y: u32 = x?;
5   |                  ^^ expected `u32`, found `i32`
6   |
7   = note: `?` operator cannot convert from `i32` to `u32`
8help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit
9   |
10LL |     let y: u32 = x?.try_into().unwrap();
11   |                    ++++++++++++++++++++
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0308`.