chiark
/
gitweb
/
~ian
/
rust-experiments.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edf883
)
not reproing
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 2 Jun 2026 11:03:31 +0000
(12:03 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 2 Jun 2026 11:03:31 +0000
(12:03 +0100)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index 6139344eb20967e4393e5dacaa8ae088bdbf06c7..de51bc4af00334f19ad49c1109613862d0ec7f48 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-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(){}