Home
last modified time | relevance | path

Searched refs:AssocType (Results 1 – 25 of 71) sorted by relevance

123

/dports/lang/rust/rustc-1.58.1-src/src/test/ui/type-alias-impl-trait/
H A Dissue-62000-associate-impl-trait-lifetimes.rs8 type AssocType: Send; typedef
9 fn ret(&self) -> Self::AssocType; in ret() argument
13 type AssocType = impl Send; typedef
14 fn ret(&self) -> Self::AssocType {
20 type AssocType = impl Send; typedef
21 fn ret(&self) -> Self::AssocType {
27 type AssocType: Send + 'a; typedef
28 fn ret(&self) -> Self::AssocType; in ret() argument
32 type AssocType = impl Send + 'a; implementation
33 fn ret(&self) -> Self::AssocType {
H A Dissue-67844-nested-opaque.rs9 type AssocType; typedef
14 type Return<A> = impl WithAssoc<AssocType = impl WithParam<A>>;
22 type AssocType = MyParam; typedef
29 fn my_other_fn<A>() -> impl WithAssoc<AssocType = impl WithParam<A>> { in my_other_fn() argument
H A Dissue-69136-inner-lifetime-resolve-ok.rs12 type AssocType; typedef
16 type AssocType = (); typedef
19 type Return<'a> = impl WithAssoc<AssocType = impl Sized + 'a>;
H A Dissue-69136-inner-lifetime-resolve-error.rs10 type AssocType; typedef
14 type AssocType = (); typedef
17 type Return<A> = impl WithAssoc<A, AssocType = impl SomeTrait + 'a>;
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/self/elision/
H A Dassoc.rs8 type AssocType; typedef
14 type AssocType = Self; typedef
18 fn assoc(self: <Struct as Trait>::AssocType, f: &u32) -> &u32 { in assoc() argument
22 fn box_AssocType(self: Box<<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in box_AssocType() argument
26 fn rc_AssocType(self: Rc<<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in rc_AssocType() argument
30 fn box_box_AssocType(self: Box<Box<<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_box_AssocType() argument
34 fn box_rc_AssocType(self: Box<Rc<<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_rc_AssocType() argument
H A Dref-assoc.rs8 type AssocType; typedef
14 type AssocType = Self; typedef
18 fn ref_AssocType(self: &<Struct as Trait>::AssocType, f: &u32) -> &u32 { in ref_AssocType() argument
22 fn box_ref_AssocType(self: Box<&<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in box_ref_AssocType() argument
26 fn pin_ref_AssocType(self: Pin<&<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in pin_ref_AssocType() argument
30 fn box_box_ref_AssocType(self: Box<Box<&<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_box_ref_AssocType() argument
34 fn box_pin_ref_AssocType(self: Box<Pin<&<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_pin_ref_AssocType() argument
H A Dassoc-async.rs9 type AssocType; typedef
15 type AssocType = Self; typedef
19 async fn assoc(self: <Struct as Trait>::AssocType, f: &u32) -> &u32 { in assoc() argument
23 async fn box_AssocType(self: Box<<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in box_AssocType() argument
27 async fn rc_AssocType(self: Rc<<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in rc_AssocType() argument
31 async fn box_box_AssocType(self: Box<Box<<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_box_AssocType() argument
35 async fn box_rc_AssocType(self: Box<Rc<<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_rc_AssocType() argument
H A Dref-assoc-async.rs9 type AssocType; typedef
15 type AssocType = Self; typedef
19 async fn ref_AssocType(self: &<Struct as Trait>::AssocType, f: &u32) -> &u32 { in ref_AssocType() argument
23 async fn box_ref_AssocType(self: Box<&<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in box_ref_AssocType() argument
27 async fn pin_ref_AssocType(self: Pin<&<Struct as Trait>::AssocType>, f: &u32) -> &u32 { in pin_ref_AssocType() argument
31 async fn box_box_ref_AssocType(self: Box<Box<&<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_box_ref_AssocType() argument
35 async fn box_pin_ref_AssocType(self: Box<Pin<&<Struct as Trait>::AssocType>>, f: &u32) -> &u32 { in box_pin_ref_AssocType() argument
H A Dlt-assoc.rs8 type AssocType; typedef
14 type AssocType = Self; typedef
22 fn take_AssocType(self: <Struct<'a> as Trait>::AssocType, f: &u32) -> &u32 { in take_AssocType() argument
26 fn take_Box_AssocType(self: Box<<Struct<'a> as Trait>::AssocType>, f: &u32) -> &u32 { in take_Box_AssocType() argument
30 fn take_Box_Box_AssocType(self: Box<Box<<Struct<'a> as Trait>::AssocType>>, f: &u32) -> &u32 { in take_Box_Box_AssocType() argument
34 fn take_Rc_AssocType(self: Rc<<Struct<'a> as Trait>::AssocType>, f: &u32) -> &u32 { in take_Rc_AssocType() argument
38 fn take_Box_Rc_AssocType(self: Box<Rc<<Struct<'a> as Trait>::AssocType>>, f: &u32) -> &u32 { in take_Box_Rc_AssocType() argument
H A Dlt-assoc-async.rs9 type AssocType; typedef
15 type AssocType = Self; typedef
23 async fn take_AssocType(self: <Struct<'a> as Trait>::AssocType, f: &u32) -> &u32 { in take_AssocType() argument
27 async fn take_Box_AssocType(self: Box<<Struct<'a> as Trait>::AssocType>, f: &u32) -> &u32 { in take_Box_AssocType() argument
32 self: Box<Box<<Struct<'a> as Trait>::AssocType>>, in take_Box_Box_AssocType() argument
38 async fn take_Rc_AssocType(self: Rc<<Struct<'a> as Trait>::AssocType>, f: &u32) -> &u32 { in take_Rc_AssocType() argument
43 self: Box<Rc<<Struct<'a> as Trait>::AssocType>>, in take_Box_Rc_AssocType() argument
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/typeck/
H A Dtypeck-default-trait-impl-assoc-type.stderr1 error[E0277]: `<T as Trait>::AssocType` cannot be sent between threads safely
4 LL | is_send::<T::AssocType>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^ `<T as Trait>::AssocType` cannot be sent between threads safely
7 = help: the trait `Send` is not implemented for `<T as Trait>::AssocType`
15 LL | fn bar<T:Trait+Send>() where <T as Trait>::AssocType: Send {
H A Dtypeck-default-trait-impl-assoc-type.fixed7 type AssocType;
10 fn bar<T:Trait+Send>() where <T as Trait>::AssocType: Send {
11 is_send::<T::AssocType>(); //~ ERROR E0277
H A Dtypeck-default-trait-impl-assoc-type.rs7 type AssocType; typedef
11 is_send::<T::AssocType>(); //~ ERROR E0277 in bar()
/dports/lang/rust/rustc-1.58.1-src/src/test/debuginfo/
H A Dfunction-names.rs173 type AssocType; typedef
177 type AssocType = usize; typedef
180 impl<T: TestTrait3> TestTrait3 for GenericStruct<T, T::AssocType> {
181 type AssocType = T::AssocType; typedef
H A Dtype-names.rs313 type AssocType; typedef
320 type AssocType = isize; typedef
411 let has_associated_type_trait = &0_isize as &(dyn Trait3<u32, AssocType = isize> + Send); in main()
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/nll/ty-outlives/
H A Dprojection-two-region-trait-bound-closure.stderr14 = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: '_#3r
30 …ciated type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` may not live lo…
36 …plicit lifetime bound `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: 'a`...
50 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
86 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
94 LL | | T::AssocType: 'a,
114 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
142 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
171 = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(0, 'b)>>::AssocType: '_#2r
212 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(1, 'b)>>::AssocType: '_#3r
[all …]
H A Dprojection-one-region-closure.rs23 type AssocType; typedef
36 T::AssocType: 'a, in require()
65 T::AssocType: 'a, in projection_outlives()
H A Dprojection-one-region-trait-bound-static-closure.rs14 type AssocType: 'static; typedef
27 T::AssocType: 'a, in require()
52 T::AssocType: 'a, in projection_outlives()
H A Dprojection-one-region-trait-bound-closure.rs15 type AssocType: 'a; typedef
28 T::AssocType: 'a, in require()
55 T::AssocType: 'a, in projection_outlives()
H A Dprojection-two-region-trait-bound-closure.rs16 type AssocType: 'a + 'b; typedef
29 T::AssocType: 'a, in require()
56 T::AssocType: 'a, in projection_outlives()
/dports/cad/opencascade/opencascade-7.6.0/src/IGESBasic/
H A DIGESBasic_ToolAssocGroupType.cxx62 IW.Send(ent->AssocType()); in WriteOwnParams()
76 Standard_Integer tempType = another->AssocType(); in OwnCopy()
86 if (res) ent->Init(2,ent->AssocType(),ent->Name()); in OwnCorrect()
119 << "Type of attached associativity : " << ent->AssocType() << "\n" in OwnDump()
H A DIGESBasic_AssocGroupType.cxx44 Standard_Integer IGESBasic_AssocGroupType::AssocType () const in AssocType() function in IGESBasic_AssocGroupType
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/tests/ui/declare_interior_mutable_const/
H A Denums.rs115 type AssocType; typedef
117 const UNFROZEN_VARIANT: BothOfCellAndGeneric<Self::AssocType> =
119 …const GENERIC_VARIANT: BothOfCellAndGeneric<Self::AssocType> = BothOfCellAndGeneric::Generic(std::…
120 const FROZEN_VARIANT: BothOfCellAndGeneric<Self::AssocType> = BothOfCellAndGeneric::Frozen(5);
H A Denums.stderr78 LL | / const UNFROZEN_VARIANT: BothOfCellAndGeneric<Self::AssocType> =
85 LL | const GENERIC_VARIANT: BothOfCellAndGeneric<Self::AssocType> = BothOfCellAndGeneric::Gener…
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/formats/
H A Ditem_type.rs41 AssocType = 16, enumerator
93 clean::AssocTypeItem(..) => ItemType::AssocType, in from()
169 ItemType::AssocType => "associatedtype", in as_str()

123