diff options
| author | bors <bors@rust-lang.org> | 2018-12-04 03:34:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-04 03:34:32 +0000 |
| commit | 91d5d56c00d8e2926ccf856f14a4e52ef480d039 (patch) | |
| tree | f5fe12bee0c3d758ed4c3dcc190057c1f7574d3c /src/test/rustdoc | |
| parent | 5912a690e015e349b8948ad90dfc16a49b69ec8b (diff) | |
| parent | c746ecfa0190548f78afe62d4d8e4140ac4e4621 (diff) | |
| download | rust-91d5d56c00d8e2926ccf856f14a4e52ef480d039.tar.gz rust-91d5d56c00d8e2926ccf856f14a4e52ef480d039.zip | |
Auto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus
Fixes primitive sidebar link generation Fixes #50746. Fixes #55656. r? @QuietMisdreavus
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/sidebar-link-generation.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/rustdoc/sidebar-link-generation.rs b/src/test/rustdoc/sidebar-link-generation.rs new file mode 100644 index 00000000000..2482a7e82b9 --- /dev/null +++ b/src/test/rustdoc/sidebar-link-generation.rs @@ -0,0 +1,23 @@ +// Copyright 2014 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"] + +// @has foo/struct.SomeStruct.html '//*[@class="sidebar-links"]/a[@href="#method.some_fn-1"]' \ +// "some_fn" +pub struct SomeStruct<T> { _inner: T } + +impl SomeStruct<()> { + pub fn some_fn(&self) {} +} + +impl SomeStruct<usize> { + pub fn some_fn(&self) {} +} |
