2023-03-21 10:44:06 -05:00
|
|
|
#![feature(rustc_attrs)]
|
2022-09-11 14:32:47 -05:00
|
|
|
|
|
|
|
// @set Local = "$.index[*][?(@.name=='Local')].id"
|
|
|
|
pub trait Local {}
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.docs=='Local for bool')].inner.impl.trait.id" $Local
|
|
|
|
// @is "$.index[*][?(@.docs=='Local for bool')].inner.impl.for.primitive" '"bool"'
|
2022-09-11 14:32:47 -05:00
|
|
|
/// Local for bool
|
|
|
|
impl Local for bool {}
|
|
|
|
|
|
|
|
// @set impl = "$.index[*][?(@.docs=='Local for bool')].id"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='Local')].inner.trait.implementations[*]" $impl
|
2022-09-11 14:32:47 -05:00
|
|
|
|
|
|
|
// FIXME(#101695): Test bool's `impls` include "Local for bool"
|
|
|
|
// @has "$.index[*][?(@.name=='bool')]"
|
2023-03-21 10:44:06 -05:00
|
|
|
#[rustc_doc_primitive = "bool"]
|
2022-09-11 14:32:47 -05:00
|
|
|
/// Boolean docs
|
|
|
|
mod prim_bool {}
|