fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
828 B26 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   |
20   = note: expected type `()`
21              found type `Bob`
22
23error: aborting due to 2 previous errors
24
25Some errors have detailed explanations: E0277, E0308.
26For more information about an error, try `rustc --explain E0277`.