fork/rust

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

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

master
532 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/option-to-bool.rs:4:16
3   |
4LL |     if true && x {}
5   |        ----    ^ expected `bool`, found `Option<i32>`
6   |        |
7   |        expected because this is `bool`
8   |
9   = note: expected type `bool`
10              found enum `Option<i32>`
11help: use `Option::is_some` to test if the `Option` has a value
12   |
13LL |     if true && x.is_some() {}
14   |                 ++++++++++
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.