summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/issue-88206.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/issue-88206.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/issue-88206.stderr')
-rw-r--r--src/test/ui/macros/issue-88206.stderr114
1 files changed, 114 insertions, 0 deletions
diff --git a/src/test/ui/macros/issue-88206.stderr b/src/test/ui/macros/issue-88206.stderr
new file mode 100644
index 000000000..f7f5b5648
--- /dev/null
+++ b/src/test/ui/macros/issue-88206.stderr
@@ -0,0 +1,114 @@
+error: cannot find macro `X` in this scope
+ --> $DIR/issue-88206.rs:64:5
+ |
+LL | X!();
+ | ^
+ |
+note: `X` is imported here, but it is a struct, not a macro
+ --> $DIR/issue-88206.rs:17:35
+ |
+LL | use hey::{Serialize, Deserialize, X};
+ | ^
+
+error: cannot find macro `test` in this scope
+ --> $DIR/issue-88206.rs:60:5
+ |
+LL | test!();
+ | ^^^^
+ |
+ = note: `test` is in scope, but it is an attribute: `#[test]`
+
+error: cannot find macro `Copy` in this scope
+ --> $DIR/issue-88206.rs:56:5
+ |
+LL | Copy!();
+ | ^^^^
+ |
+ = note: `Copy` is in scope, but it is a derive macro: `#[derive(Copy)]`
+
+error: cannot find macro `Box` in this scope
+ --> $DIR/issue-88206.rs:52:5
+ |
+LL | Box!();
+ | ^^^
+ |
+ = note: `Box` is in scope, but it is a struct, not a macro
+
+error: cannot find macro `from_utf8` in this scope
+ --> $DIR/issue-88206.rs:49:5
+ |
+LL | from_utf8!();
+ | ^^^^^^^^^
+ |
+note: `from_utf8` is imported here, but it is a function, not a macro
+ --> $DIR/issue-88206.rs:5:5
+ |
+LL | use std::str::*;
+ | ^^^^^^^^^^^
+
+error: cannot find attribute `println` in this scope
+ --> $DIR/issue-88206.rs:43:3
+ |
+LL | #[println]
+ | ^^^^^^^
+ |
+ = note: `println` is in scope, but it is a function-like macro
+
+error: cannot find attribute `from_utf8_unchecked` in this scope
+ --> $DIR/issue-88206.rs:39:3
+ |
+LL | #[from_utf8_unchecked]
+ | ^^^^^^^^^^^^^^^^^^^
+ |
+note: `from_utf8_unchecked` is imported here, but it is a function, not an attribute
+ --> $DIR/issue-88206.rs:5:5
+ |
+LL | use std::str::*;
+ | ^^^^^^^^^^^
+
+error: cannot find attribute `Deserialize` in this scope
+ --> $DIR/issue-88206.rs:35:3
+ |
+LL | #[Deserialize]
+ | ^^^^^^^^^^^
+ |
+note: `Deserialize` is imported here, but it is a trait, not an attribute
+ --> $DIR/issue-88206.rs:17:22
+ |
+LL | use hey::{Serialize, Deserialize, X};
+ | ^^^^^^^^^^^
+
+error: cannot find derive macro `println` in this scope
+ --> $DIR/issue-88206.rs:30:10
+ |
+LL | #[derive(println)]
+ | ^^^^^^^
+ |
+ = note: `println` is in scope, but it is a function-like macro
+
+error: cannot find derive macro `from_utf8_mut` in this scope
+ --> $DIR/issue-88206.rs:26:10
+ |
+LL | #[derive(from_utf8_mut)]
+ | ^^^^^^^^^^^^^
+ |
+note: `from_utf8_mut` is imported here, but it is a function, not a derive macro
+ --> $DIR/issue-88206.rs:5:5
+ |
+LL | use std::str::*;
+ | ^^^^^^^^^^^
+
+error: cannot find derive macro `Serialize` in this scope
+ --> $DIR/issue-88206.rs:22:10
+ |
+LL | #[derive(Serialize)]
+ | ^^^^^^^^^
+ |
+note: `Serialize` is imported here, but it is only a trait, without a derive macro
+ --> $DIR/issue-88206.rs:17:11
+ |
+LL | use hey::{Serialize, Deserialize, X};
+ | ^^^^^^^^^
+
+error: aborting due to 11 previous errors
+