fork/rust

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

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

master
673 B27 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-108470.rs:14:9
3   |
4LL |         t
5   |         ^ expected `Thing`, found `&Thing`
6   |
7help: consider using clone here
8   |
9LL |         t: t.clone()
10   |          +++++++++++
11
12error[E0308]: mismatched types
13  --> $DIR/issue-108470.rs:25:9
14   |
15LL |         t
16   |         ^ expected `bool`, found `Option<i32>`
17   |
18   = note: expected type `bool`
19              found enum `Option<i32>`
20help: use `Option::is_some` to test if the `Option` has a value
21   |
22LL |         t: t.is_some()
23   |          +++++++++++++
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0308`.