]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-backtrace-invalid-internals.stderr
Give method not found a primary span label
[rust.git] / src / test / 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 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
11   --> $DIR/macro-backtrace-invalid-internals.rs:11:13
12    |
13 LL |           1.fake
14    |             ^^^^
15 ...
16 LL |     fake_field_stmt!();
17    |     ------------------- in this macro invocation
18
19 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
20   --> $DIR/macro-backtrace-invalid-internals.rs:17:15
21    |
22 LL |           (1).0
23    |               ^
24 ...
25 LL |     fake_anon_field_stmt!();
26    |     ------------------------ in this macro invocation
27
28 error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
29   --> $DIR/macro-backtrace-invalid-internals.rs:41:15
30    |
31 LL |           2.0.neg()
32    |               ^^^
33 ...
34 LL |     real_method_stmt!();
35    |     -------------------- in this macro invocation
36 help: you must specify a concrete type for this numeric value, like `f32`
37    |
38 LL |           2.0_f32.neg()
39    |           ^^^^^^^
40
41 error[E0599]: no method named `fake` found for type `{integer}` in the current scope
42   --> $DIR/macro-backtrace-invalid-internals.rs:23:13
43    |
44 LL |           1.fake()
45    |             ^^^^ method not found in `{integer}`
46 ...
47 LL |     let _ = fake_method_expr!();
48    |             ------------------- in this macro invocation
49
50 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
51   --> $DIR/macro-backtrace-invalid-internals.rs:29:13
52    |
53 LL |           1.fake
54    |             ^^^^
55 ...
56 LL |     let _ = fake_field_expr!();
57    |             ------------------ in this macro invocation
58
59 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
60   --> $DIR/macro-backtrace-invalid-internals.rs:35:15
61    |
62 LL |           (1).0
63    |               ^
64 ...
65 LL |     let _ = fake_anon_field_expr!();
66    |             ----------------------- in this macro invocation
67
68 error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
69   --> $DIR/macro-backtrace-invalid-internals.rs:47:15
70    |
71 LL |           2.0.neg()
72    |               ^^^
73 ...
74 LL |     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 LL |           2.0_f32.neg()
79    |           ^^^^^^^
80
81 error: aborting due to 8 previous errors
82
83 Some errors have detailed explanations: E0599, E0610, E0689.
84 For more information about an error, try `rustc --explain E0599`.