]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/intra-doc/anchors.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
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` contains an anchor
31 /// Another anchor error: [hello#people#!].
32 //~^ ERROR `hello#people#!` contains multiple anchors
37 /// Damn enum's variants: [Enum::A#whatever].
38 //~^ ERROR `Enum::A#whatever` contains an anchor
44 //~^ ERROR `u32#hello` contains an anchor