about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-90974.stderr
blob: 114024789fbb34b1f8e1ca9c2381a6b5101e71c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0689]: can't call method `recip` on ambiguous numeric type `{float}`
  --> $DIR/issue-90974.rs:2:25
   |
LL |     println!("{}", (3.).recip());
   |                         ^^^^^
   |
help: you must specify a concrete type for this numeric value, like `f32`
   |
LL -     println!("{}", (3.).recip());
LL +     println!("{}", (3_f32).recip());
   |

error: aborting due to 1 previous error

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