about summary refs log tree commit diff
path: root/src/test/ui/macros/macro-backtrace-invalid-internals.stderr
blob: c566430cbf0725996b88161c9fa38907de4b3ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
  --> $DIR/macro-backtrace-invalid-internals.rs:15:13
   |
LL |           1.fake() //~ ERROR no method
   |             ^^^^
...
LL |     fake_method_stmt!();
   |     -------------------- in this macro invocation

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:21:13
   |
LL |           1.fake //~ ERROR doesn't have fields
   |             ^^^^
...
LL |     fake_field_stmt!();
   |     ------------------- in this macro invocation

error[E0609]: no field `0` on type `{integer}`
  --> $DIR/macro-backtrace-invalid-internals.rs:27:11
   |
LL |           (1).0 //~ ERROR no field
   |           ^^^^^
...
LL |     fake_anon_field_stmt!();
   |     ------------------------ in this macro invocation

error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
  --> $DIR/macro-backtrace-invalid-internals.rs:51:15
   |
LL |           2.0.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
   |               ^^^^
...
LL |     real_method_stmt!();
   |     -------------------- in this macro invocation
help: you must specify a concrete type for this numeric value, like `f32`
   |
51 |           2.0_f32.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
   |           ^^^^^^^

error[E0599]: no method named `fake` found for type `{integer}` in the current scope
  --> $DIR/macro-backtrace-invalid-internals.rs:33:13
   |
LL |           1.fake() //~ ERROR no method
   |             ^^^^
...
LL |     let _ = fake_method_expr!();
   |             ------------------- in this macro invocation

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:39:13
   |
LL |           1.fake //~ ERROR doesn't have fields
   |             ^^^^
...
LL |     let _ = fake_field_expr!();
   |             ------------------ in this macro invocation

error[E0609]: no field `0` on type `{integer}`
  --> $DIR/macro-backtrace-invalid-internals.rs:45:11
   |
LL |           (1).0 //~ ERROR no field
   |           ^^^^^
...
LL |     let _ = fake_anon_field_expr!();
   |             ----------------------- in this macro invocation

error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
  --> $DIR/macro-backtrace-invalid-internals.rs:57:15
   |
LL |           2.0.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
   |               ^^^^
...
LL |     let _ = real_method_expr!();
   |             ------------------- in this macro invocation
help: you must specify a concrete type for this numeric value, like `f32`
   |
57 |           2.0_f32.powi(2) //~ ERROR can't call method `powi` on ambiguous numeric type `{float}`
   |           ^^^^^^^

error: aborting due to 8 previous errors

You've got a few errors: E0599, E0609, E0610, E0689
If you want more information on an error, try using "rustc --explain E0599"