1 use std::marker::PhantomData;
6 pub trait InterfaceType{
11 pub struct FooInterface<T>(PhantomData<fn()->T>);
13 impl<T> InterfaceType for FooInterface<T> {
18 pub struct DynTrait<I>{
19 _interface:PhantomData<fn()->I>,
20 _unsync_unsend:PhantomData<::std::rc::Rc<()>>,
23 unsafe impl<I> Send for DynTrait<I>
25 I:InterfaceType<Send=True>
28 // @has issue_60726/struct.IntoIter.html
29 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
30 // "impl<T> !Send for IntoIter<T>"
31 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
32 // "impl<T> !Sync for IntoIter<T>"
33 pub struct IntoIter<T>{
34 hello:DynTrait<FooInterface<T>>,