1 error[E0308]: mismatched types
2 --> $DIR/type_inference.rs:21:14
5 | ^ expected `i32`, found floating-point number
7 error[E0277]: the trait bound `{float}: Bar` is not satisfied
8 --> $DIR/type_inference.rs:25:5
10 LL | fn only_bar<T: Bar>(_x: T) { }
11 | -------- --- required by this bound in `only_bar`
14 | ^^^^^^^^ the trait `Bar` is not implemented for `{float}`
16 = help: the following implementations were found:
20 error: aborting due to 2 previous errors
22 Some errors have detailed explanations: E0277, E0308.
23 For more information about an error, try `rustc --explain E0277`.