fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: the trait bound `{integer}: Scalar` is not satisfied 2 --> $DIR/issue-22645.rs:15:5 3 | 4LL | 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 11error[E0308]: mismatched types 12 --> $DIR/issue-22645.rs:15:3 13 | 14LL | fn main() { 15 | - expected `()` because of default return type 16LL | let b = Bob + 3.5; 17LL | b + 3 18 | ^^^^^ expected `()`, found struct `Bob` 19 20error: aborting due to 2 previous errors 21 22Some errors have detailed explanations: E0277, E0308. 23For more information about an error, try `rustc --explain E0277`.