2022-09-11 14:32:47 -05:00
|
|
|
//@ aux-build: foreign_struct.rs
|
|
|
|
extern crate foreign_struct;
|
|
|
|
|
|
|
|
/// ForeignStruct id hack
|
|
|
|
pub use foreign_struct::ForeignStruct as _;
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set ForeignStruct = "$.index[*][?(@.docs=='ForeignStruct id hack')].inner.import.id"
|
2022-09-11 14:32:47 -05:00
|
|
|
|
|
|
|
pub trait LocalTrait {}
|
|
|
|
// @set LocalTrait = "$.index[*][?(@.name=='LocalTrait')].id"
|
|
|
|
|
|
|
|
/// local for foreign
|
|
|
|
impl LocalTrait for foreign_struct::ForeignStruct {}
|
|
|
|
|
|
|
|
// @set impl = "$.index[*][?(@.docs=='local for foreign')].id"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.docs=='local for foreign')].inner.impl.trait.id" $LocalTrait
|
|
|
|
// @is "$.index[*][?(@.docs=='local for foreign')].inner.impl.for.resolved_path.id" $ForeignStruct
|
2022-09-11 14:32:47 -05:00
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='LocalTrait')].inner.trait.implementations[*]" $impl
|