diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-07 14:01:53 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-05-15 21:37:12 +0200 |
| commit | 564511e58b09c50932287f005e046865bd015430 (patch) | |
| tree | 4215076ed9c9b93ddf8e6a8d569b7bab89daeccb /src/test/rustdoc/auto-impl-primitive.rs | |
| parent | cb1ce7ddf8e791faddc9760ca505d513ce1c00c9 (diff) | |
| download | rust-564511e58b09c50932287f005e046865bd015430.tar.gz rust-564511e58b09c50932287f005e046865bd015430.zip | |
add auto-impl for primitive type
Diffstat (limited to 'src/test/rustdoc/auto-impl-primitive.rs')
| -rw-r--r-- | src/test/rustdoc/auto-impl-primitive.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc/auto-impl-primitive.rs b/src/test/rustdoc/auto-impl-primitive.rs new file mode 100644 index 00000000000..a3887b33cc2 --- /dev/null +++ b/src/test/rustdoc/auto-impl-primitive.rs @@ -0,0 +1,17 @@ +// 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. + +#![crate_name = "foo"] +pub use std::fs::File; + +// @has 'foo/primitive.i16.html' '//h2[@id="synthetic-implementations"]' 'Auto Trait Implementation' +#[doc(primitive = "i16")] +/// I love poneys! +mod prim {} |
