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"
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type.type" null
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ 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"
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const.value" null
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ 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"
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare impl')].inner.assoc_type.type.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\"
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE impl')].inner.assoc_const.value" \"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;
|
|
|
|
}
|