@@ -4,7 +4,7 @@ error[E0599]: no method named `fake` found for type `{integer}` in the current s
4415 | 1.fake() //~ ERROR no method
55 | ^^^^
66...
7- 50 | fake_method_stmt!();
7+ 62 | fake_method_stmt!();
88 | -------------------- in this macro invocation
99
1010error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
@@ -13,7 +13,7 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
131321 | 1.fake //~ ERROR doesn't have fields
1414 | ^^^^
1515...
16- 51 | fake_field_stmt!();
16+ 63 | fake_field_stmt!();
1717 | ------------------- in this macro invocation
1818
1919error[E0609]: no field `0` on type `{integer}`
@@ -22,16 +22,29 @@ error[E0609]: no field `0` on type `{integer}`
222227 | (1).0 //~ ERROR no field
2323 | ^^^^^
2424...
25- 52 | fake_anon_field_stmt!();
25+ 64 | fake_anon_field_stmt!();
2626 | ------------------------ in this macro invocation
2727
28+ error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
29+ --> $DIR/macro-backtrace-invalid-internals.rs:51:15
30+ |
31+ 51 | 2.0.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
32+ | ^^^^
33+ ...
34+ 65 | real_method_stmt!();
35+ | -------------------- in this macro invocation
36+ help: you must specify a concrete type for this numeric value, like `f32`
37+ |
38+ 51 | (2.0 as f32).powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
39+ | ^^^^^^^^^^^^
40+
2841error[E0599]: no method named `fake` found for type `{integer}` in the current scope
2942 --> $DIR/macro-backtrace-invalid-internals.rs:33:13
3043 |
314433 | 1.fake() //~ ERROR no method
3245 | ^^^^
3346...
34- 54 | let _ = fake_method_expr!();
47+ 67 | let _ = fake_method_expr!();
3548 | ------------------- in this macro invocation
3649
3750error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
@@ -40,7 +53,7 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
405339 | 1.fake //~ ERROR doesn't have fields
4154 | ^^^^
4255...
43- 55 | let _ = fake_field_expr!();
56+ 68 | let _ = fake_field_expr!();
4457 | ------------------ in this macro invocation
4558
4659error[E0609]: no field `0` on type `{integer}`
@@ -49,8 +62,21 @@ error[E0609]: no field `0` on type `{integer}`
496245 | (1).0 //~ ERROR no field
5063 | ^^^^^
5164...
52- 56 | let _ = fake_anon_field_expr!();
65+ 69 | let _ = fake_anon_field_expr!();
5366 | ----------------------- in this macro invocation
5467
55- error: aborting due to 6 previous errors
68+ error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
69+ --> $DIR/macro-backtrace-invalid-internals.rs:57:15
70+ |
71+ 57 | 2.0.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
72+ | ^^^^
73+ ...
74+ 70 | let _ = real_method_expr!();
75+ | ------------------- in this macro invocation
76+ help: you must specify a concrete type for this numeric value, like `f32`
77+ |
78+ 57 | (2.0 as f32).powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
79+ | ^^^^^^^^^^^^
80+
81+ error: aborting due to 8 previous errors
5682
0 commit comments