2022-06-27 13:59:18 +00:00
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
pub struct Simple;
|
|
|
|
|
|
|
|
impl Simple {
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ has "$.index[*][?(@.name=='CONSTANT')].inner.assoc_const"
|
2022-06-27 13:59:18 +00:00
|
|
|
pub const CONSTANT: usize = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait EasyToImpl {
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ has "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type"
|
2024-08-04 23:44:35 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type.type" null
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare trait')].inner.assoc_type.bounds" []
|
2022-09-10 00:30:47 +00:00
|
|
|
/// ToDeclare trait
|
2022-06-27 13:59:18 +00:00
|
|
|
type ToDeclare;
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ has "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const"
|
2024-08-04 23:44:35 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const.value" null
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE trait')].inner.assoc_const.type.primitive" '"usize"'
|
2022-09-10 00:30:47 +00:00
|
|
|
/// AN_ATTRIBUTE trait
|
2022-06-27 13:59:18 +00:00
|
|
|
const AN_ATTRIBUTE: usize;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl EasyToImpl for Simple {
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ has "$.index[*][?(@.docs=='ToDeclare impl')].inner.assoc_type"
|
2024-08-04 23:44:35 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='ToDeclare impl')].inner.assoc_type.type.primitive" \"usize\"
|
2022-09-10 00:30:47 +00:00
|
|
|
/// ToDeclare impl
|
2022-06-27 13:59:18 +00:00
|
|
|
type ToDeclare = usize;
|
2022-09-10 00:30:47 +00:00
|
|
|
|
2024-07-19 14:50:47 +00: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 23:44:35 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='AN_ATTRIBUTE impl')].inner.assoc_const.value" \"12\"
|
2022-09-10 00:30:47 +00:00
|
|
|
/// AN_ATTRIBUTE impl
|
2022-06-27 13:59:18 +00:00
|
|
|
const AN_ATTRIBUTE: usize = 12;
|
|
|
|
}
|