about summary refs log tree commit diff
path: root/tests/ui/macros/builtin-std-paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/builtin-std-paths.rs')
-rw-r--r--tests/ui/macros/builtin-std-paths.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/ui/macros/builtin-std-paths.rs b/tests/ui/macros/builtin-std-paths.rs
new file mode 100644
index 00000000000..2083f9ba3dc
--- /dev/null
+++ b/tests/ui/macros/builtin-std-paths.rs
@@ -0,0 +1,32 @@
+// check-pass
+
+#[derive(
+    core::clone::Clone,
+    core::marker::Copy,
+    core::fmt::Debug,
+    core::default::Default,
+    core::cmp::Eq,
+    core::hash::Hash,
+    core::cmp::Ord,
+    core::cmp::PartialEq,
+    core::cmp::PartialOrd,
+)]
+struct Core;
+
+#[derive(
+    std::clone::Clone,
+    std::marker::Copy,
+    std::fmt::Debug,
+    std::default::Default,
+    std::cmp::Eq,
+    std::hash::Hash,
+    std::cmp::Ord,
+    std::cmp::PartialEq,
+    std::cmp::PartialOrd,
+)]
+struct Std;
+
+fn main() {
+    core::column!();
+    std::column!();
+}