]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-22645.stderr
fuzzify `fuzzy_match_tys`
[rust.git] / src / test / ui / block-result / issue-22645.stderr
1 error[E0277]: the trait bound `{integer}: Scalar` is not satisfied
2   --> $DIR/issue-22645.rs:15:5
3    |
4 LL |   b + 3
5    |     ^ the trait `Scalar` is not implemented for `{integer}`
6    |
7 note: required because of the requirements on the impl of `Add<{integer}>` for `Bob`
8   --> $DIR/issue-22645.rs:8:19
9    |
10 LL | impl<RHS: Scalar> Add <RHS> for Bob {
11    |                   ^^^^^^^^^     ^^^
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-22645.rs:15:3
15    |
16 LL | fn main() {
17    |           - expected `()` because of default return type
18 LL |   let b = Bob + 3.5;
19 LL |   b + 3
20    |   ^^^^^ expected `()`, found struct `Bob`
21
22 error: aborting due to 2 previous errors
23
24 Some errors have detailed explanations: E0277, E0308.
25 For more information about an error, try `rustc --explain E0277`.