b825477154
Following up to #49896 and #50629. Fixes #32110. E0689 is weird.
85 lines
3.0 KiB
Plaintext
85 lines
3.0 KiB
Plaintext
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[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
--> $DIR/macro-backtrace-invalid-internals.rs:27:15
|
|
|
|
|
LL | (1).0 //~ ERROR doesn't have fields
|
|
| ^
|
|
...
|
|
LL | fake_anon_field_stmt!();
|
|
| ------------------------ in this macro invocation
|
|
|
|
error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
|
|
--> $DIR/macro-backtrace-invalid-internals.rs:51:15
|
|
|
|
|
LL | 2.0.neg() //~ ERROR can't call method `neg` 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`
|
|
|
|
|
LL | 2.0_f32.neg() //~ ERROR can't call method `neg` 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[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
--> $DIR/macro-backtrace-invalid-internals.rs:45:15
|
|
|
|
|
LL | (1).0 //~ ERROR doesn't have fields
|
|
| ^
|
|
...
|
|
LL | let _ = fake_anon_field_expr!();
|
|
| ----------------------- in this macro invocation
|
|
|
|
error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
|
|
--> $DIR/macro-backtrace-invalid-internals.rs:57:15
|
|
|
|
|
LL | 2.0.neg() //~ ERROR can't call method `neg` 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`
|
|
|
|
|
LL | 2.0_f32.neg() //~ ERROR can't call method `neg` on ambiguous numeric type `{float}`
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
Some errors occurred: E0599, E0610, E0689.
|
|
For more information about an error, try `rustc --explain E0599`.
|