Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
12
tests/rustdoc/duplicate_impls/impls.rs
Normal file
12
tests/rustdoc/duplicate_impls/impls.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
pub struct Foo;
|
||||
|
||||
// just so that `Foo` doesn't show up on `Bar`s sidebar
|
||||
pub mod bar {
|
||||
pub trait Bar {}
|
||||
}
|
||||
|
||||
impl Foo {
|
||||
pub fn new() -> Foo { Foo }
|
||||
}
|
||||
|
||||
impl bar::Bar for Foo {}
|
14
tests/rustdoc/duplicate_impls/issue-33054.rs
Normal file
14
tests/rustdoc/duplicate_impls/issue-33054.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// ignore-tidy-linelength
|
||||
|
||||
// @has issue_33054/impls/struct.Foo.html
|
||||
// @has - '//h3[@class="code-header"]' 'impl Foo'
|
||||
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
|
||||
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
|
||||
// @count - '//*[@id="main-content"]/div[@id="implementations-list"]/details/summary/*[@class="impl has-srclink"]' 1
|
||||
// @has issue_33054/impls/bar/trait.Bar.html
|
||||
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
|
||||
// @count - '//*[@class="struct"]' 1
|
||||
pub mod impls;
|
||||
|
||||
#[doc(inline)]
|
||||
pub use impls as impls2;
|
Loading…
Add table
Add a link
Reference in a new issue