@@ -27,55 +27,55 @@ impl<'a> Test4 for Test3<'a> {
2727
2828use std:: any:: Any ;
2929
30- pub fn test5 ( foo : & mut Box < Any > ) {
30+ pub fn test5 ( foo : & mut Box < dyn Any > ) {
3131 println ! ( "{:?}" , foo)
3232}
3333
3434pub fn test6 ( ) {
35- let foo: & Box < Any > ;
35+ let foo: & Box < dyn Any > ;
3636}
3737
3838struct Test7 < ' a > {
39- foo : & ' a Box < Any > ,
39+ foo : & ' a Box < dyn Any > ,
4040}
4141
4242trait Test8 {
43- fn test8 ( a : & Box < Any > ) ;
43+ fn test8 ( a : & Box < dyn Any > ) ;
4444}
4545
4646impl < ' a > Test8 for Test7 < ' a > {
47- fn test8 ( a : & Box < Any > ) {
47+ fn test8 ( a : & Box < dyn Any > ) {
4848 unimplemented ! ( ) ;
4949 }
5050}
5151
52- pub fn test9 ( foo : & mut Box < Any + Send + Sync > ) {
52+ pub fn test9 ( foo : & mut Box < dyn Any + Send + Sync > ) {
5353 let _ = foo;
5454}
5555
5656pub fn test10 ( ) {
57- let foo: & Box < Any + Send + ' static > ;
57+ let foo: & Box < dyn Any + Send + ' static > ;
5858}
5959
6060struct Test11 < ' a > {
61- foo : & ' a Box < Any + Send > ,
61+ foo : & ' a Box < dyn Any + Send > ,
6262}
6363
6464trait Test12 {
65- fn test4 ( a : & Box < Any + ' static > ) ;
65+ fn test4 ( a : & Box < dyn Any + ' static > ) ;
6666}
6767
6868impl < ' a > Test12 for Test11 < ' a > {
69- fn test4 ( a : & Box < Any + ' static > ) {
69+ fn test4 ( a : & Box < dyn Any + ' static > ) {
7070 unimplemented ! ( ) ;
7171 }
7272}
7373
7474fn main ( ) {
7575 test1 ( & mut Box :: new ( false ) ) ;
7676 test2 ( ) ;
77- test5 ( & mut ( Box :: new ( false ) as Box < Any > ) ) ;
77+ test5 ( & mut ( Box :: new ( false ) as Box < dyn Any > ) ) ;
7878 test6 ( ) ;
79- test9 ( & mut ( Box :: new ( false ) as Box < Any + Send + Sync > ) ) ;
79+ test9 ( & mut ( Box :: new ( false ) as Box < dyn Any + Send + Sync > ) ) ;
8080 test10 ( ) ;
8181}
0 commit comments