diff options
| author | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-05 09:13:28 +0100 |
|---|---|---|
| committer | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-11 09:32:08 +0000 |
| commit | cf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch) | |
| tree | 40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/rustdoc/primitive-reference.rs | |
| parent | ca855e6e42787ecd062d81d53336fe6788ef51a9 (diff) | |
| download | rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip | |
Move /src/test to /tests
Diffstat (limited to 'src/test/rustdoc/primitive-reference.rs')
| -rw-r--r-- | src/test/rustdoc/primitive-reference.rs | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/test/rustdoc/primitive-reference.rs b/src/test/rustdoc/primitive-reference.rs deleted file mode 100644 index ea8d2d16602..00000000000 --- a/src/test/rustdoc/primitive-reference.rs +++ /dev/null @@ -1,37 +0,0 @@ -#![crate_name = "foo"] - -#![feature(rustdoc_internals)] - -// @has foo/index.html -// @has - '//h2[@id="primitives"]' 'Primitive Types' -// @has - '//a[@href="primitive.reference.html"]' 'reference' -// @has - '//div[@class="sidebar-elems"]//li/a' 'Primitive Types' -// @has - '//div[@class="sidebar-elems"]//li/a/@href' '#primitives' -// @has foo/primitive.reference.html -// @has - '//a[@class="primitive"]' 'reference' -// @has - '//h1[@class="fqn"]' 'Primitive Type reference' -// @has - '//section[@id="main-content"]//div[@class="docblock"]//p' 'this is a test!' - -// There should be only one implementation listed. -// @count - '//*[@class="impl has-srclink"]' 1 -// @has - '//*[@id="impl-Foo%3C%26A%3E-for-%26B"]/*[@class="code-header"]' \ -// 'impl<A, B> Foo<&A> for &B' -#[doc(primitive = "reference")] -/// this is a test! -mod reference {} - -pub struct Bar; - -// This implementation should **not** show up. -impl<T> From<&T> for Bar { - fn from(s: &T) -> Self { - Bar - } -} - -pub trait Foo<T> { - fn stuff(&self, other: &T) {} -} - -// This implementation should show up. -impl<A, B> Foo<&A> for &B {} |
