From d892e985b086214a56146323b356236600809355 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Sat, 30 Sep 2017 03:17:51 +0300 Subject: [PATCH] rustdoc: A test for local and foreign [src] trait impl links --- src/test/rustdoc/issue-43893.rs | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/test/rustdoc/issue-43893.rs diff --git a/src/test/rustdoc/issue-43893.rs b/src/test/rustdoc/issue-43893.rs new file mode 100644 index 00000000000..b49cffc36aa --- /dev/null +++ b/src/test/rustdoc/issue-43893.rs @@ -0,0 +1,34 @@ +// Copyright 2016 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// ignore-cross-compile + +#![crate_name = "foo"] + +pub trait SomeTrait {} + +pub struct SomeStruct; + +// + +// dummy +// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#23-26' +impl SomeTrait for usize { + + +} + +// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#29-32' +impl SomeTrait for SomeStruct { + + +} + +// some trailer