1 error[E0277]: the trait bound `{integer}: Scalar` is not satisfied
2 --> $DIR/issue-22645.rs:15:5
5 | ^ the trait `Scalar` is not implemented for `{integer}`
7 = help: the trait `Scalar` is implemented for `f64`
8 note: required for `Bob` to implement `Add<{integer}>`
9 --> $DIR/issue-22645.rs:8:19
11 LL | impl<RHS: Scalar> Add <RHS> for Bob {
12 | ------ ^^^^^^^^^ ^^^
14 | unsatisfied trait bound introduced here
16 error[E0308]: mismatched types
17 --> $DIR/issue-22645.rs:15:3
20 | - expected `()` because of default return type
21 LL | let b = Bob + 3.5;
23 | ^^^^^ expected `()`, found struct `Bob`
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0277, E0308.
28 For more information about an error, try `rustc --explain E0277`.