chiark / gitweb /
not reproing
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 2 Jun 2026 11:03:31 +0000 (12:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 2 Jun 2026 11:03:31 +0000 (12:03 +0100)
src/main.rs

index 6139344eb20967e4393e5dacaa8ae088bdbf06c7..de51bc4af00334f19ad49c1109613862d0ec7f48 100644 (file)
@@ -1,6 +1,17 @@
 
-const _ : () = {
-    let _ = std::any::TypeId::of::<()>;
-};
+macro_rules! define_broken_link { {} => {
+    #[macro_export]
+    macro_rules! broken_link { {} => {} }
+} }
+
+macro_rules! make_broken_reference { {} => {
+    /// Doc comment
+    ///
+    /// [Something](broken_link)
+    pub type T = ();
+} }
+
+make_broken_reference! {}
+define_broken_link! {}
 
 fn main(){}