Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
21
tests/rustdoc-json/impls/local_for_local_primitive.rs
Normal file
21
tests/rustdoc-json/impls/local_for_local_primitive.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
#![feature(no_core)]
|
||||
#![feature(rustdoc_internals)]
|
||||
#![no_core]
|
||||
|
||||
// @set Local = "$.index[*][?(@.name=='Local')].id"
|
||||
pub trait Local {}
|
||||
|
||||
// @is "$.index[*][?(@.docs=='Local for bool')].inner.trait.id" $Local
|
||||
// @is "$.index[*][?(@.docs=='Local for bool')].inner.for.kind" '"primitive"'
|
||||
// @is "$.index[*][?(@.docs=='Local for bool')].inner.for.inner" '"bool"'
|
||||
/// Local for bool
|
||||
impl Local for bool {}
|
||||
|
||||
// @set impl = "$.index[*][?(@.docs=='Local for bool')].id"
|
||||
// @is "$.index[*][?(@.name=='Local')].inner.implementations[*]" $impl
|
||||
|
||||
// FIXME(#101695): Test bool's `impls` include "Local for bool"
|
||||
// @has "$.index[*][?(@.name=='bool')]"
|
||||
#[doc(primitive = "bool")]
|
||||
/// Boolean docs
|
||||
mod prim_bool {}
|
Loading…
Add table
Add a link
Reference in a new issue