error[E0277]: the trait bound `f64: Bar` is not satisfied | |
--> $DIR/type_inference.rs:27:5 | |
| | |
LL | fn only_bar<T: Bar>(_x: T) { } | |
| --- required by this bound in `only_bar` | |
... | |
LL | only_bar(x); | |
| ^^^^^^^^ the trait `Bar` is not implemented for `f64` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. |