@@ -25,17 +25,17 @@ LL | (1).0 //~ ERROR doesn't have fields
25
25
LL | fake_anon_field_stmt!();
26
26
| ------------------------ in this macro invocation
27
27
28
- error[E0689]: can't call method `powi ` on ambiguous numeric type `{float}`
28
+ error[E0689]: can't call method `recip ` on ambiguous numeric type `{float}`
29
29
--> $DIR/macro-backtrace-invalid-internals.rs:51:15
30
30
|
31
- LL | 2.0.powi(2 ) //~ ERROR can't call method `powi ` on ambiguous numeric type `{float}`
32
- | ^^^^
31
+ LL | 2.0.recip( ) //~ ERROR can't call method `recip ` on ambiguous numeric type `{float}`
32
+ | ^^^^^
33
33
...
34
34
LL | real_method_stmt!();
35
35
| -------------------- in this macro invocation
36
36
help: you must specify a concrete type for this numeric value, like `f32`
37
37
|
38
- LL | 2.0_f32.powi(2 ) //~ ERROR can't call method `powi ` on ambiguous numeric type `{float}`
38
+ LL | 2.0_f32.recip( ) //~ ERROR can't call method `recip ` on ambiguous numeric type `{float}`
39
39
| ^^^^^^^
40
40
41
41
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
@@ -65,17 +65,17 @@ LL | (1).0 //~ ERROR doesn't have fields
65
65
LL | let _ = fake_anon_field_expr!();
66
66
| ----------------------- in this macro invocation
67
67
68
- error[E0689]: can't call method `powi ` on ambiguous numeric type `{float}`
68
+ error[E0689]: can't call method `recip ` on ambiguous numeric type `{float}`
69
69
--> $DIR/macro-backtrace-invalid-internals.rs:57:15
70
70
|
71
- LL | 2.0.powi(2 ) //~ ERROR can't call method `powi ` on ambiguous numeric type `{float}`
72
- | ^^^^
71
+ LL | 2.0.recip( ) //~ ERROR can't call method `recip ` on ambiguous numeric type `{float}`
72
+ | ^^^^^
73
73
...
74
74
LL | let _ = real_method_expr!();
75
75
| ------------------- in this macro invocation
76
76
help: you must specify a concrete type for this numeric value, like `f32`
77
77
|
78
- LL | 2.0_f32.powi(2 ) //~ ERROR can't call method `powi ` on ambiguous numeric type `{float}`
78
+ LL | 2.0_f32.recip( ) //~ ERROR can't call method `recip ` on ambiguous numeric type `{float}`
79
79
| ^^^^^^^
80
80
81
81
error: aborting due to 8 previous errors
0 commit comments