| 1 | use synrust-analyzer cargo syn 2.0.119 crate/::parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/; |
| 2 | |
| 3 | use craterust-analyzer cargo blanket 0.4.0 crate/::deriverust-analyzer cargo blanket 0.4.0 derive/::Receiverrust-analyzer cargo blanket 0.4.0 derive/Receiver#; |
| 4 | use craterust-analyzer cargo blanket 0.4.0 crate/::deriverust-analyzer cargo blanket 0.4.0 derive/::WrapperTyperust-analyzer cargo blanket 0.4.0 derive/WrapperType#; |
| 5 | |
| 6 | struct ArcTyperust-analyzer cargo blanket 0.4.0 types/arc/ArcType#; |
| 7 | |
| 8 | impl WrapperTyperust-analyzer cargo blanket 0.4.0 derive/WrapperType# for ArcTyperust-analyzer cargo blanket 0.4.0 types/arc/ArcType# { |
| 9 | const NAMErust-analyzer cargo blanket 0.4.0 types/arc/impl#[ArcType][WrapperType]NAME.: &'static str = "Arc"; |
| 10 | const RECEIVERSrust-analyzer cargo blanket 0.4.0 types/arc/impl#[ArcType][WrapperType]RECEIVERS.: &'static [Receiverrust-analyzer cargo blanket 0.4.0 derive/Receiver#] = &[Receiverrust-analyzer cargo blanket 0.4.0 derive/Receiver#::Refrust-analyzer cargo blanket 0.4.0 derive/Receiver#Ref#]; |
| 11 | fn wraprust-analyzer cargo blanket 0.4.0 types/arc/impl#[ArcType][WrapperType]wrap().(ty: &synrust-analyzer cargo syn 2.0.119 crate/::Identrust-analyzer cargo proc-macro2 1.0.107 Ident#) -> synrust-analyzer cargo syn 2.0.119 crate/::Typerust-analyzer cargo syn 2.0.119 ty/Type# { |
| 12 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!(std::sync::Arc<#ty>) |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | pub fn deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(trait_: &synrust-analyzer cargo syn 2.0.119 crate/::ItemTraitrust-analyzer cargo syn 2.0.119 item/ItemTrait#) -> synrust-analyzer cargo syn 2.0.119 crate/::Resultrust-analyzer cargo syn 2.0.119 error/Result#<synrust-analyzer cargo syn 2.0.119 crate/::ItemImplrust-analyzer cargo syn 2.0.119 item/ItemImpl#> { |
| 17 | ArcTyperust-analyzer cargo blanket 0.4.0 types/arc/ArcType#::deriverust-analyzer cargo blanket 0.4.0 derive/WrapperType#derive().(trait_) |
| 18 | } |
| 19 | |
| 20 | #[cfg(test)] |
| 21 | mod testsrust-analyzer cargo blanket 0.4.0 types/arc/tests/ { |
| 22 | mod deriverust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/ { |
| 23 | |
| 24 | use synrust-analyzer cargo syn 2.0.119 crate/::parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/; |
| 25 | |
| 26 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 27 | fn emptyrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/empty().() { |
| 28 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 29 | trait Trait {} |
| 30 | ); |
| 31 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 32 | superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), |
| 33 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 34 | #[automatically_derived] |
| 35 | impl<T: Trait + ?Sized> Trait for std::sync::Arc<T> {} |
| 36 | ) |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 41 | fn receiver_refrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/receiver_ref().() { |
| 42 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 43 | trait Trait { |
| 44 | fn my_method(&self); |
| 45 | } |
| 46 | ); |
| 47 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 48 | superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(), |
| 49 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 50 | #[automatically_derived] |
| 51 | impl<T: Trait + ?Sized> Trait for std::sync::Arc<T> { |
| 52 | #[inline] |
| 53 | fn my_method(&self) { |
| 54 | (*(*self)).my_method() |
| 55 | } |
| 56 | } |
| 57 | ) |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 62 | fn receiver_mutrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/receiver_mut().() { |
| 63 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 64 | trait Trait { |
| 65 | fn my_method(&mut self); |
| 66 | } |
| 67 | ); |
| 68 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).is_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]is_err().()); |
| 69 | } |
| 70 | |
| 71 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 72 | fn receiver_selfrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/receiver_self().() { |
| 73 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 74 | trait Trait { |
| 75 | fn my_method(self); |
| 76 | } |
| 77 | ); |
| 78 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).is_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]is_err().()); |
| 79 | } |
| 80 | |
| 81 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 82 | fn receiver_arbitraryrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/receiver_arbitrary().() { |
| 83 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 84 | trait Trait { |
| 85 | fn my_method(self: Box<Self>); |
| 86 | } |
| 87 | ); |
| 88 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).is_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]is_err().()); |
| 89 | } |
| 90 | |
| 91 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 92 | fn genericsrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/generics().() { |
| 93 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 94 | trait MyTrait<T> {} |
| 95 | ); |
| 96 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 97 | |
| 98 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 99 | derived, |
| 100 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 101 | #[automatically_derived] |
| 102 | impl<T, MT: MyTrait<T> + ?Sized> MyTrait<T> for std::sync::Arc<MT> {} |
| 103 | ) |
| 104 | ); |
| 105 | } |
| 106 | |
| 107 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 108 | fn generics_boundedrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/generics_bounded().() { |
| 109 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 110 | trait MyTrait<T: 'static + Send> {} |
| 111 | ); |
| 112 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 113 | |
| 114 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 115 | derived, |
| 116 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 117 | #[automatically_derived] |
| 118 | impl<T: 'static + Send, MT: MyTrait<T> + ?Sized> MyTrait<T> for std::sync::Arc<MT> {} |
| 119 | ) |
| 120 | ); |
| 121 | } |
| 122 | |
| 123 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 124 | fn generics_lifetimerust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/generics_lifetime().() { |
| 125 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 126 | trait MyTrait<'a, 'b: 'a, T: 'static + Send> {} |
| 127 | ); |
| 128 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 129 | |
| 130 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 131 | derived, |
| 132 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 133 | #[automatically_derived] |
| 134 | impl<'a, 'b: 'a, T: 'static + Send, MT: MyTrait<'a, 'b, T> + ?Sized> |
| 135 | MyTrait<'a, 'b, T> for std::sync::Arc<MT> |
| 136 | { |
| 137 | } |
| 138 | ) |
| 139 | ); |
| 140 | } |
| 141 | |
| 142 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 143 | fn associated_typesrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_types().() { |
| 144 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 145 | trait MyTrait { |
| 146 | type Return; |
| 147 | } |
| 148 | ); |
| 149 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 150 | |
| 151 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 152 | derived, |
| 153 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 154 | #[automatically_derived] |
| 155 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 156 | type Return = <MT as MyTrait>::Return; |
| 157 | } |
| 158 | ) |
| 159 | ); |
| 160 | } |
| 161 | |
| 162 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 163 | fn associated_types_boundrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_types_bound().() { |
| 164 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 165 | trait MyTrait { |
| 166 | type Return: Clone; |
| 167 | } |
| 168 | ); |
| 169 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 170 | |
| 171 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 172 | derived, |
| 173 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 174 | #[automatically_derived] |
| 175 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 176 | type Return = <MT as MyTrait>::Return; |
| 177 | } |
| 178 | ) |
| 179 | ); |
| 180 | } |
| 181 | |
| 182 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 183 | fn associated_types_dodgy_namerust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_types_dodgy_name().() { |
| 184 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 185 | trait MyTrait { |
| 186 | type r#type; |
| 187 | } |
| 188 | ); |
| 189 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 190 | |
| 191 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 192 | derived, |
| 193 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 194 | #[automatically_derived] |
| 195 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 196 | type r#type = <MT as MyTrait>::r#type; |
| 197 | } |
| 198 | ) |
| 199 | ); |
| 200 | } |
| 201 | |
| 202 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 203 | fn associated_types_attrsrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_types_attrs().() { |
| 204 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 205 | trait MyTrait { |
| 206 | #[cfg(target_arch = "wasm32")] |
| 207 | type Return; |
| 208 | #[cfg(not(target_arch = "wasm32"))] |
| 209 | type Return: Send; |
| 210 | } |
| 211 | ); |
| 212 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 213 | |
| 214 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 215 | derived, |
| 216 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 217 | #[automatically_derived] |
| 218 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 219 | #[cfg(target_arch = "wasm32")] |
| 220 | type Return = <MT as MyTrait>::Return; |
| 221 | #[cfg(not(target_arch = "wasm32"))] |
| 222 | type Return = <MT as MyTrait>::Return; |
| 223 | } |
| 224 | ) |
| 225 | ); |
| 226 | } |
| 227 | |
| 228 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 229 | fn associated_types_and_genericsrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_types_and_generics().() { |
| 230 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 231 | trait MyTrait<T> { |
| 232 | type Return; |
| 233 | } |
| 234 | ); |
| 235 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 236 | |
| 237 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 238 | derived, |
| 239 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 240 | #[automatically_derived] |
| 241 | impl<T, MT: MyTrait<T> + ?Sized> MyTrait<T> for std::sync::Arc<MT> { |
| 242 | type Return = <MT as MyTrait<T>>::Return; |
| 243 | } |
| 244 | ) |
| 245 | ); |
| 246 | } |
| 247 | |
| 248 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 249 | fn associated_type_genericsrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_type_generics().() { |
| 250 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 251 | trait MyTrait { |
| 252 | type Return<T>; |
| 253 | } |
| 254 | ); |
| 255 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 256 | |
| 257 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 258 | derived, |
| 259 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 260 | #[automatically_derived] |
| 261 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 262 | type Return<T> = <MT as MyTrait>::Return<T>; |
| 263 | } |
| 264 | ) |
| 265 | ); |
| 266 | } |
| 267 | |
| 268 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 269 | fn associated_type_generics_boundedrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_type_generics_bounded().() { |
| 270 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 271 | trait MyTrait { |
| 272 | type Return<T: 'static + Send>; |
| 273 | } |
| 274 | ); |
| 275 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 276 | |
| 277 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 278 | derived, |
| 279 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 280 | #[automatically_derived] |
| 281 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 282 | type Return<T: 'static + Send> = <MT as MyTrait>::Return<T>; |
| 283 | } |
| 284 | ) |
| 285 | ); |
| 286 | } |
| 287 | |
| 288 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 289 | fn associated_type_generics_lifetimesrust-analyzer cargo blanket 0.4.0 types/arc/tests/derive/associated_type_generics_lifetimes().() { |
| 290 | let trait_ = parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 291 | trait MyTrait { |
| 292 | type Return<'a> |
| 293 | where |
| 294 | Self: 'a; |
| 295 | } |
| 296 | ); |
| 297 | let derived = superrust-analyzer cargo blanket 0.4.0 types/arc/tests/::superrust-analyzer cargo blanket 0.4.0 types/arc/::deriverust-analyzer cargo blanket 0.4.0 types/arc/derive().(&trait_).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 298 | |
| 299 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 300 | derived, |
| 301 | parse_quoterust-analyzer cargo syn 2.0.119 parse_quote/parse_quote!!( |
| 302 | #[automatically_derived] |
| 303 | impl<MT: MyTrait + ?Sized> MyTrait for std::sync::Arc<MT> { |
| 304 | type Return<'a> = <MT as MyTrait>::Return<'a> |
| 305 | where |
| 306 | Self: 'a; |
| 307 | } |
| 308 | ) |
| 309 | ); |
| 310 | } |
| 311 | } |
| 312 | } |