fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
764 B23 linesraw
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`.