@@ -4,7 +4,7 @@ error[E0599]: no method named `fake` found for type `{integer}` in the current s
4
4
15 | 1.fake() //~ ERROR no method
5
5
| ^^^^
6
6
...
7
- 50 | fake_method_stmt!();
7
+ 62 | fake_method_stmt!();
8
8
| -------------------- in this macro invocation
9
9
10
10
error[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
13
13
21 | 1.fake //~ ERROR doesn't have fields
14
14
| ^^^^
15
15
...
16
- 51 | fake_field_stmt!();
16
+ 63 | fake_field_stmt!();
17
17
| ------------------- in this macro invocation
18
18
19
19
error[E0609]: no field `0` on type `{integer}`
@@ -22,16 +22,29 @@ error[E0609]: no field `0` on type `{integer}`
22
22
27 | (1).0 //~ ERROR no field
23
23
| ^^^^^
24
24
...
25
- 52 | fake_anon_field_stmt!();
25
+ 64 | 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}`
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
+
28
41
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
29
42
--> $DIR/macro-backtrace-invalid-internals.rs:33:13
30
43
|
31
44
33 | 1.fake() //~ ERROR no method
32
45
| ^^^^
33
46
...
34
- 54 | let _ = fake_method_expr!();
47
+ 67 | let _ = fake_method_expr!();
35
48
| ------------------- in this macro invocation
36
49
37
50
error[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
40
53
39 | 1.fake //~ ERROR doesn't have fields
41
54
| ^^^^
42
55
...
43
- 55 | let _ = fake_field_expr!();
56
+ 68 | let _ = fake_field_expr!();
44
57
| ------------------ in this macro invocation
45
58
46
59
error[E0609]: no field `0` on type `{integer}`
@@ -49,8 +62,21 @@ error[E0609]: no field `0` on type `{integer}`
49
62
45 | (1).0 //~ ERROR no field
50
63
| ^^^^^
51
64
...
52
- 56 | let _ = fake_anon_field_expr!();
65
+ 69 | let _ = fake_anon_field_expr!();
53
66
| ----------------------- in this macro invocation
54
67
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
56
82
0 commit comments