@@ -26,15 +26,15 @@ fn main() {
2626 // Test that zero-offset works properly
2727 let b : Baz < usize > = Baz { a : 7 } ;
2828 assert_eq ! ( b. a. get( ) , 7 ) ;
29- let b : & Baz < Bar > = & b;
29+ let b : & Baz < dyn Bar > = & b;
3030 assert_eq ! ( b. a. get( ) , 7 ) ;
3131
3232 // Test that the field is aligned properly
3333 let f : Foo < usize > = Foo { a : 0 , b : 11 } ;
3434 assert_eq ! ( f. b. get( ) , 11 ) ;
3535 let ptr1 : * const u8 = & f. b as * const _ as * const u8 ;
3636
37- let f : & Foo < Bar > = & f;
37+ let f : & Foo < dyn Bar > = & f;
3838 let ptr2 : * const u8 = & f. b as * const _ as * const u8 ;
3939 assert_eq ! ( f. b. get( ) , 11 ) ;
4040
@@ -44,13 +44,13 @@ fn main() {
4444 // Test that nested DSTs work properly
4545 let f : Foo < Foo < usize > > = Foo { a : 0 , b : Foo { a : 1 , b : 17 } } ;
4646 assert_eq ! ( f. b. b. get( ) , 17 ) ;
47- let f : & Foo < Foo < Bar > > = & f;
47+ let f : & Foo < Foo < dyn Bar > > = & f;
4848 assert_eq ! ( f. b. b. get( ) , 17 ) ;
4949
5050 // Test that get the pointer via destructuring works
5151
5252 let f : Foo < usize > = Foo { a : 0 , b : 11 } ;
53- let f : & Foo < Bar > = & f;
53+ let f : & Foo < dyn Bar > = & f;
5454 let & Foo { a : _, b : ref bar } = f;
5555 assert_eq ! ( bar. get( ) , 11 ) ;
5656
0 commit comments