about summary refs log tree commit diff
path: root/src/test/rustdoc/auxiliary
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2018-04-29 23:28:39 +0100
committerOliver Middleton <olliemail27@gmail.com>2018-04-29 23:28:39 +0100
commit7232df7d5acd8a543178eccb03fe00b962b3afb1 (patch)
treee0788f8a9c11f810a15b00125bf60bf7e2349ed2 /src/test/rustdoc/auxiliary
parent207bc403799e4a8a04f873be94834ccc09c1412b (diff)
downloadrust-7232df7d5acd8a543178eccb03fe00b962b3afb1.tar.gz
rust-7232df7d5acd8a543178eccb03fe00b962b3afb1.zip
rustdoc: Fix links to constants in external crates
Diffstat (limited to 'src/test/rustdoc/auxiliary')
-rw-r--r--src/test/rustdoc/auxiliary/all-item-types.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/all-item-types.rs b/src/test/rustdoc/auxiliary/all-item-types.rs
new file mode 100644
index 00000000000..19a0b88ce7d
--- /dev/null
+++ b/src/test/rustdoc/auxiliary/all-item-types.rs
@@ -0,0 +1,32 @@
+// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![feature(extern_types)]
+
+pub mod foo_mod {}
+extern "C" {
+    pub fn foo_ffn();
+    pub static FOO_FSTATIC: FooStruct;
+    pub type FooFType;
+}
+pub fn foo_fn() {}
+pub trait FooTrait {}
+pub struct FooStruct;
+pub enum FooEnum {}
+pub union FooUnion {
+    x: (),
+}
+pub type FooType = FooStruct;
+pub static FOO_STATIC: FooStruct = FooStruct;
+pub const FOO_CONSTANT: FooStruct = FooStruct;
+#[macro_export]
+macro_rules! foo_macro {
+    () => ();
+}