diff options
Diffstat (limited to 'src/test/rustdoc-ui/intra-doc/anchors.rs')
-rw-r--r-- | src/test/rustdoc-ui/intra-doc/anchors.rs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/test/rustdoc-ui/intra-doc/anchors.rs b/src/test/rustdoc-ui/intra-doc/anchors.rs deleted file mode 100644 index 34e11c7c7..000000000 --- a/src/test/rustdoc-ui/intra-doc/anchors.rs +++ /dev/null @@ -1,39 +0,0 @@ -#![deny(rustdoc::broken_intra_doc_links)] - -// A few tests on anchors. - -/// Hello people. -/// -/// You can anchors? Here's one! -/// -/// # hola -/// -/// Isn't it amazing? -pub struct Foo { - pub f: u8, -} - -pub enum Enum { - A, - B, -} - -/// Have you heard about stuff? -/// -/// Like [Foo#hola]. -/// -/// Or maybe [Foo::f#hola]. -//~^ ERROR `Foo::f#hola` contains an anchor -pub fn foo() {} - -/// Empty. -/// -/// Another anchor error: [hello#people#!]. -//~^ ERROR `hello#people#!` contains multiple anchors -pub fn bar() {} - -/// Empty? -/// -/// Damn enum's variants: [Enum::A#whatever]. -//~^ ERROR `Enum::A#whatever` contains an anchor -pub fn enum_link() {} |