2022-06-27 08:59:18 -05:00
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
pub struct Simple;
|
|
|
|
|
|
|
|
impl Simple {
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.name=='CONSTANT')].inner.assoc_const"
|
2022-06-27 08:59:18 -05:00
|
|
|
pub const CONSTANT: usize = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait EasyToImpl {
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type"
|
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type.default" null
|
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type.bounds" []
|
2022-09-09 19:30:47 -05:00
|
|
|
/// ToDeclare trait
|
2022-06-27 08:59:18 -05:00
|
|
|
type ToDeclare;
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const"
|
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const.default" null
|
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const.type.primitive" '"usize"'
|
2022-09-09 19:30:47 -05:00
|
|
|
/// AN_ATTRIBUTE trait
|
2022-06-27 08:59:18 -05:00
|
|
|
const AN_ATTRIBUTE: usize;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl EasyToImpl for Simple {
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.docs=='ToDeclare impl')].inner.assoc_type"
|
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare impl')].inner.assoc_type.default.primitive" \"usize\"
|
2022-09-09 19:30:47 -05:00
|
|
|
/// ToDeclare impl
|
2022-06-27 08:59:18 -05:00
|
|
|
type ToDeclare = usize;
|
2022-09-09 19:30:47 -05:00
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ has "$.index[*][?(@.docs=='AN_ATTRIBUTE impl')].inner.assoc_const"
|
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE impl')].inner.assoc_const.type.primitive" \"usize\"
|
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE impl')].inner.assoc_const.default" \"12\"
|
2022-09-09 19:30:47 -05:00
|
|
|
/// AN_ATTRIBUTE impl
|
2022-06-27 08:59:18 -05:00
|
|
|
const AN_ATTRIBUTE: usize = 12;
|
|
|
|
}
|