@@ -272,39 +272,39 @@ mod tests {
272
272
#[ test]
273
273
fn impl_traits ( ) {
274
274
assert_impl_all ! ( NSObject : NSObjectProtocol ) ;
275
- assert_impl_all ! ( ProtocolObject <NSObject >: NSObjectProtocol ) ;
275
+ assert_impl_all ! ( ProtocolObject <dyn NSObjectProtocol >: NSObjectProtocol ) ;
276
276
assert_not_impl_any ! ( ProtocolObject <dyn Foo >: NSObjectProtocol ) ;
277
277
assert_impl_all ! ( ProtocolObject <dyn Bar >: NSObjectProtocol ) ;
278
278
assert_impl_all ! ( ProtocolObject <dyn FooBar >: NSObjectProtocol ) ;
279
279
assert_impl_all ! ( ProtocolObject <dyn FooFooBar >: NSObjectProtocol ) ;
280
280
assert_impl_all ! ( DummyClass : NSObjectProtocol ) ;
281
281
282
282
assert_not_impl_any ! ( NSObject : Foo ) ;
283
- assert_not_impl_any ! ( ProtocolObject <NSObject >: Foo ) ;
283
+ assert_not_impl_any ! ( ProtocolObject <dyn NSObjectProtocol >: Foo ) ;
284
284
assert_impl_all ! ( ProtocolObject <dyn Foo >: Foo ) ;
285
285
assert_not_impl_any ! ( ProtocolObject <dyn Bar >: Foo ) ;
286
286
assert_impl_all ! ( ProtocolObject <dyn FooBar >: Foo ) ;
287
287
assert_impl_all ! ( ProtocolObject <dyn FooFooBar >: Foo ) ;
288
288
assert_impl_all ! ( DummyClass : Foo ) ;
289
289
290
290
assert_not_impl_any ! ( NSObject : Bar ) ;
291
- assert_not_impl_any ! ( ProtocolObject <NSObject >: Bar ) ;
291
+ assert_not_impl_any ! ( ProtocolObject <dyn NSObjectProtocol >: Bar ) ;
292
292
assert_not_impl_any ! ( ProtocolObject <dyn Foo >: Bar ) ;
293
293
assert_impl_all ! ( ProtocolObject <dyn Bar >: Bar ) ;
294
294
assert_impl_all ! ( ProtocolObject <dyn FooBar >: Bar ) ;
295
295
assert_impl_all ! ( ProtocolObject <dyn FooFooBar >: Bar ) ;
296
296
assert_impl_all ! ( DummyClass : Bar ) ;
297
297
298
298
assert_not_impl_any ! ( NSObject : FooBar ) ;
299
- assert_not_impl_any ! ( ProtocolObject <NSObject >: FooBar ) ;
299
+ assert_not_impl_any ! ( ProtocolObject <dyn NSObjectProtocol >: FooBar ) ;
300
300
assert_not_impl_any ! ( ProtocolObject <dyn Foo >: FooBar ) ;
301
301
assert_not_impl_any ! ( ProtocolObject <dyn Bar >: FooBar ) ;
302
302
assert_impl_all ! ( ProtocolObject <dyn FooBar >: FooBar ) ;
303
303
assert_impl_all ! ( ProtocolObject <dyn FooFooBar >: FooBar ) ;
304
304
assert_impl_all ! ( DummyClass : FooBar ) ;
305
305
306
306
assert_not_impl_any ! ( NSObject : FooFooBar ) ;
307
- assert_not_impl_any ! ( ProtocolObject <NSObject >: FooFooBar ) ;
307
+ assert_not_impl_any ! ( ProtocolObject <dyn NSObjectProtocol >: FooFooBar ) ;
308
308
assert_not_impl_any ! ( ProtocolObject <dyn Foo >: FooFooBar ) ;
309
309
assert_not_impl_any ! ( ProtocolObject <dyn Bar >: FooFooBar ) ;
310
310
assert_not_impl_any ! ( ProtocolObject <dyn FooBar >: FooFooBar ) ;
@@ -326,10 +326,10 @@ mod tests {
326
326
let foo: & ProtocolObject < dyn Foo > = ProtocolObject :: from_ref ( & * obj) ;
327
327
let _foo: & ProtocolObject < dyn Foo > = ProtocolObject :: from_ref ( foo) ;
328
328
329
- let _nsobject: & ProtocolObject < NSObject > = ProtocolObject :: from_ref ( foobar) ;
330
- let _nsobject: & ProtocolObject < NSObject > = ProtocolObject :: from_ref ( bar) ;
331
- let nsobject: & ProtocolObject < NSObject > = ProtocolObject :: from_ref ( & * obj) ;
332
- let _nsobject: & ProtocolObject < NSObject > = ProtocolObject :: from_ref ( nsobject) ;
329
+ let _nsobject: & ProtocolObject < dyn NSObjectProtocol > = ProtocolObject :: from_ref ( foobar) ;
330
+ let _nsobject: & ProtocolObject < dyn NSObjectProtocol > = ProtocolObject :: from_ref ( bar) ;
331
+ let nsobject: & ProtocolObject < dyn NSObjectProtocol > = ProtocolObject :: from_ref ( & * obj) ;
332
+ let _nsobject: & ProtocolObject < dyn NSObjectProtocol > = ProtocolObject :: from_ref ( nsobject) ;
333
333
334
334
let _foobar: & mut ProtocolObject < dyn FooBar > = ProtocolObject :: from_mut ( & mut * obj) ;
335
335
let _foobar: Id < ProtocolObject < dyn FooBar > > = ProtocolObject :: from_id ( obj) ;
0 commit comments