2018-01-03 19:18:17 -08:00
|
|
|
error[E0689]: can't call method `f` on ambiguous numeric type `{integer}`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-41652.rs:9:11
|
2017-05-01 15:27:36 +08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | 3.f()
|
2017-05-01 15:27:36 +08:00
|
|
|
| ^
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2018-01-04 12:23:14 -08:00
|
|
|
help: you must specify a concrete type for this numeric value, like `i32`
|
2017-05-01 15:27:36 +08:00
|
|
|
|
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | 3_i32.f()
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~
|
2017-05-01 15:27:36 +08:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2017-05-01 15:27:36 +08:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0689`.
|