File: macro-backtrace-invalid-internals.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (100 lines) | stat: -rw-r--r-- 3,822 bytes parent folder | download | duplicates (10)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
  --> $DIR/macro-backtrace-invalid-internals.rs:5:13
   |
LL |           1.fake()
   |             ^^^^ method not found in `{integer}`
...
LL |     fake_method_stmt!();
   |     ------------------- in this macro invocation
   |
   = note: this error originates in the macro `fake_method_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:11:13
   |
LL |           1.fake
   |             ^^^^
...
LL |     fake_field_stmt!();
   |     ------------------ in this macro invocation
   |
   = note: this error originates in the macro `fake_field_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:17:15
   |
LL |           (1).0
   |               ^
...
LL |     fake_anon_field_stmt!();
   |     ----------------------- in this macro invocation
   |
   = note: this error originates in the macro `fake_anon_field_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
  --> $DIR/macro-backtrace-invalid-internals.rs:41:15
   |
LL |           2.0.neg()
   |               ^^^
...
LL |     real_method_stmt!();
   |     ------------------- in this macro invocation
   |
   = note: this error originates in the macro `real_method_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you must specify a concrete type for this numeric value, like `f32`
   |
LL |           2.0_f32.neg()
   |           ~~~~~~~

error[E0599]: no method named `fake` found for type `{integer}` in the current scope
  --> $DIR/macro-backtrace-invalid-internals.rs:23:13
   |
LL |           1.fake()
   |             ^^^^ method not found in `{integer}`
...
LL |     let _ = fake_method_expr!();
   |             ------------------- in this macro invocation
   |
   = note: this error originates in the macro `fake_method_expr` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:29:13
   |
LL |           1.fake
   |             ^^^^
...
LL |     let _ = fake_field_expr!();
   |             ------------------ in this macro invocation
   |
   = note: this error originates in the macro `fake_field_expr` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/macro-backtrace-invalid-internals.rs:35:15
   |
LL |           (1).0
   |               ^
...
LL |     let _ = fake_anon_field_expr!();
   |             ----------------------- in this macro invocation
   |
   = note: this error originates in the macro `fake_anon_field_expr` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
  --> $DIR/macro-backtrace-invalid-internals.rs:47:15
   |
LL |           2.0.neg()
   |               ^^^
...
LL |     let _ = real_method_expr!();
   |             ------------------- in this macro invocation
   |
   = note: this error originates in the macro `real_method_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you must specify a concrete type for this numeric value, like `f32`
   |
LL |           2.0_f32.neg()
   |           ~~~~~~~

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0599, E0610, E0689.
For more information about an error, try `rustc --explain E0599`.