]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-22645.stderr
report the total number of errors on compilation failure
[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:25:5
3    |
4 25 |   b + 3 //~ ERROR E0277
5    |     ^ the trait `Scalar` is not implemented for `{integer}`
6    |
7    = help: the following implementations were found:
8              <f64 as Scalar>
9    = note: required because of the requirements on the impl of `std::ops::Add<{integer}>` for `Bob`
10
11 error[E0308]: mismatched types
12   --> $DIR/issue-22645.rs:25:3
13    |
14 25 |   b + 3 //~ ERROR E0277
15    |   ^^^^^ expected (), found struct `Bob`
16    |
17    = note: expected type `()`
18               found type `Bob`
19
20 error: aborting due to 2 previous errors
21