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