]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-backtrace-invalid-internals.stderr
Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726
[rust.git] / tests / ui / macros / macro-backtrace-invalid-internals.stderr
1 error[E0599]: no method named `fake` found for type `{integer}` in the current scope
2   --> $DIR/macro-backtrace-invalid-internals.rs:5:13
3    |
4 LL |           1.fake()
5    |             ^^^^ method not found in `{integer}`
6 ...
7 LL |     fake_method_stmt!();
8    |     ------------------- in this macro invocation
9    |
10    = note: this error originates in the macro `fake_method_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
13   --> $DIR/macro-backtrace-invalid-internals.rs:11:13
14    |
15 LL |           1.fake
16    |             ^^^^
17 ...
18 LL |     fake_field_stmt!();
19    |     ------------------ in this macro invocation
20    |
21    = note: this error originates in the macro `fake_field_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
24   --> $DIR/macro-backtrace-invalid-internals.rs:17:15
25    |
26 LL |           (1).0
27    |               ^
28 ...
29 LL |     fake_anon_field_stmt!();
30    |     ----------------------- in this macro invocation
31    |
32    = note: this error originates in the macro `fake_anon_field_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
35   --> $DIR/macro-backtrace-invalid-internals.rs:41:15
36    |
37 LL |           2.0.neg()
38    |               ^^^
39 ...
40 LL |     real_method_stmt!();
41    |     ------------------- in this macro invocation
42    |
43    = note: this error originates in the macro `real_method_stmt` (in Nightly builds, run with -Z macro-backtrace for more info)
44 help: you must specify a concrete type for this numeric value, like `f32`
45    |
46 LL |           2.0_f32.neg()
47    |           ~~~~~~~
48
49 error[E0599]: no method named `fake` found for type `{integer}` in the current scope
50   --> $DIR/macro-backtrace-invalid-internals.rs:23:13
51    |
52 LL |           1.fake()
53    |             ^^^^ method not found in `{integer}`
54 ...
55 LL |     let _ = fake_method_expr!();
56    |             ------------------- in this macro invocation
57    |
58    = note: this error originates in the macro `fake_method_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
59
60 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
61   --> $DIR/macro-backtrace-invalid-internals.rs:29:13
62    |
63 LL |           1.fake
64    |             ^^^^
65 ...
66 LL |     let _ = fake_field_expr!();
67    |             ------------------ in this macro invocation
68    |
69    = note: this error originates in the macro `fake_field_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
70
71 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
72   --> $DIR/macro-backtrace-invalid-internals.rs:35:15
73    |
74 LL |           (1).0
75    |               ^
76 ...
77 LL |     let _ = fake_anon_field_expr!();
78    |             ----------------------- in this macro invocation
79    |
80    = note: this error originates in the macro `fake_anon_field_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
81
82 error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
83   --> $DIR/macro-backtrace-invalid-internals.rs:47:15
84    |
85 LL |           2.0.neg()
86    |               ^^^
87 ...
88 LL |     let _ = real_method_expr!();
89    |             ------------------- in this macro invocation
90    |
91    = note: this error originates in the macro `real_method_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
92 help: you must specify a concrete type for this numeric value, like `f32`
93    |
94 LL |           2.0_f32.neg()
95    |           ~~~~~~~
96
97 error: aborting due to 8 previous errors
98
99 Some errors have detailed explanations: E0599, E0610, E0689.
100 For more information about an error, try `rustc --explain E0599`.