]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-22645.stderr
5df71e8374b1d2f730d30c948133df89e3e860d8
[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    = 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:15:3
13    |
14 LL | fn main() {
15    |           - expected `()` because of default return type
16 LL |   let b = Bob + 3.5;
17 LL |   b + 3
18    |   ^^^^^ expected (), found struct `Bob`
19    |
20    = note: expected unit type `()`
21                  found struct `Bob`
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0277, E0308.
26 For more information about an error, try `rustc --explain E0277`.