summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/type_inference.stderr
blob: 508a6dd1388cbb08463d1f034d3cc3d7f27429f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0277]: the trait bound `{float}: Bar` is not satisfied
  --> $DIR/type_inference.rs:27:14
   |
LL |     only_bar(x);
   |     -------- ^ the trait `Bar` is not implemented for `{float}`
   |     |
   |     required by a bound introduced by this call
   |
   = help: the following other types implement trait `Bar`:
             i32
             u32
note: required by a bound in `only_bar`
  --> $DIR/type_inference.rs:12:16
   |
LL | fn only_bar<T: Bar>(_x: T) { }
   |                ^^^ required by this bound in `only_bar`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.