]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/intra-links-anchors.rs
1 #![deny(intra_doc_link_resolution_failure)]
3 // A few tests on anchors.
7 /// You can anchors? Here's one!
21 /// Have you heard about stuff?
25 /// Or maybe [Foo::f#hola].
26 //~^ ERROR `[Foo::f#hola]` has an issue with the link anchor.
31 /// Another anchor error: [hello#people#!].
32 //~^ ERROR `[hello#people#!]` has an issue with the link anchor.
37 /// Damn enum's variants: [Enum::A#whatever].
38 //~^ ERROR `[Enum::A#whatever]` has an issue with the link anchor.
44 //~^ ERROR `[u32#hello]` has an issue with the link anchor.