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 note: required because of the requirements on the impl of `Add<{integer}>` for `Bob`
8 --> $DIR/issue-22645.rs:8:19
10 LL | impl<RHS: Scalar> Add <RHS> for Bob {
13 error[E0308]: mismatched types
14 --> $DIR/issue-22645.rs:15:3
17 | - expected `()` because of default return type
18 LL | let b = Bob + 3.5;
20 | ^^^^^ expected `()`, found struct `Bob`
22 error: aborting due to 2 previous errors
24 Some errors have detailed explanations: E0277, E0308.
25 For more information about an error, try `rustc --explain E0277`.