rust/src/test/ui/macros/macro-backtrace-invalid-internals.stderr

85 lines
3.0 KiB
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:5:13
|
2018-02-22 18:42:32 -06:00
LL | 1.fake() //~ ERROR no method
| ^^^^
...
2018-02-22 18:42:32 -06:00
LL | fake_method_stmt!();
| -------------------- in this macro invocation
2017-06-11 12:48:46 -05:00
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:11:13
|
2018-02-22 18:42:32 -06:00
LL | 1.fake //~ ERROR doesn't have fields
| ^^^^
...
2018-02-22 18:42:32 -06:00
LL | fake_field_stmt!();
| ------------------- in this macro invocation
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:17:15
|
LL | (1).0 //~ ERROR doesn't have fields
| ^
...
2018-02-22 18:42:32 -06:00
LL | fake_anon_field_stmt!();
| ------------------------ in this macro invocation
error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:41:15
|
LL | 2.0.neg() //~ ERROR can't call method `neg` on ambiguous numeric type `{float}`
| ^^^
...
2018-02-22 18:42:32 -06:00
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}`
| ^^^^^^^
2017-05-27 12:58:52 -05:00
error[E0599]: no method named `fake` found for type `{integer}` in the current scope
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:23:13
|
2018-02-22 18:42:32 -06:00
LL | 1.fake() //~ ERROR no method
| ^^^^
...
2018-02-22 18:42:32 -06:00
LL | let _ = fake_method_expr!();
| ------------------- in this macro invocation
2017-06-11 12:48:46 -05:00
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:29:13
|
2018-02-22 18:42:32 -06:00
LL | 1.fake //~ ERROR doesn't have fields
| ^^^^
...
2018-02-22 18:42:32 -06:00
LL | let _ = fake_field_expr!();
| ------------------ in this macro invocation
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:35:15
|
LL | (1).0 //~ ERROR doesn't have fields
| ^
...
2018-02-22 18:42:32 -06:00
LL | let _ = fake_anon_field_expr!();
| ----------------------- in this macro invocation
error[E0689]: can't call method `neg` on ambiguous numeric type `{float}`
2018-12-25 09:56:47 -06:00
--> $DIR/macro-backtrace-invalid-internals.rs:47:15
|
LL | 2.0.neg() //~ ERROR can't call method `neg` on ambiguous numeric type `{float}`
| ^^^
...
2018-02-22 18:42:32 -06:00
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.
2018-03-03 08:59:40 -06:00
For more information about an error, try `rustc --explain E0599`.