summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-backtrace-invalid-internals.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/macros/macro-backtrace-invalid-internals.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/macros/macro-backtrace-invalid-internals.stderr')
-rw-r--r--src/test/ui/macros/macro-backtrace-invalid-internals.stderr100
1 files changed, 100 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-backtrace-invalid-internals.stderr b/src/test/ui/macros/macro-backtrace-invalid-internals.stderr
new file mode 100644
index 000000000..aa8f06a0d
--- /dev/null
+++ b/src/test/ui/macros/macro-backtrace-invalid-internals.stderr
@@ -0,0 +1,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`.