File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -107,48 +107,48 @@ pub async fn test() {
107107 s. calls_mut ( ) . await ;
108108}
109109
110- pub async fn test_object_safe_without_default ( ) {
110+ pub async fn test_dyn_compatible_without_default ( ) {
111111 #[ async_trait]
112- trait ObjectSafe {
112+ trait DynCompatible {
113113 async fn f ( & self ) ;
114114 }
115115
116116 #[ async_trait]
117- impl ObjectSafe for Struct {
117+ impl DynCompatible for Struct {
118118 async fn f ( & self ) { }
119119 }
120120
121- let object = & Struct as & dyn ObjectSafe ;
121+ let object = & Struct as & dyn DynCompatible ;
122122 object. f ( ) . await ;
123123}
124124
125- pub async fn test_object_safe_with_default ( ) {
125+ pub async fn test_dyn_compatible_with_default ( ) {
126126 #[ async_trait]
127- trait ObjectSafe : Sync {
127+ trait DynCompatible : Sync {
128128 async fn f ( & self ) { }
129129 }
130130
131131 #[ async_trait]
132- impl ObjectSafe for Struct {
132+ impl DynCompatible for Struct {
133133 async fn f ( & self ) { }
134134 }
135135
136- let object = & Struct as & dyn ObjectSafe ;
136+ let object = & Struct as & dyn DynCompatible ;
137137 object. f ( ) . await ;
138138}
139139
140- pub async fn test_object_no_send ( ) {
140+ pub async fn test_dyn_compatible_no_send ( ) {
141141 #[ async_trait( ?Send ) ]
142- trait ObjectSafe : Sync {
142+ trait DynCompatible : Sync {
143143 async fn f ( & self ) { }
144144 }
145145
146146 #[ async_trait( ?Send ) ]
147- impl ObjectSafe for Struct {
147+ impl DynCompatible for Struct {
148148 async fn f ( & self ) { }
149149 }
150150
151- let object = & Struct as & dyn ObjectSafe ;
151+ let object = & Struct as & dyn DynCompatible ;
152152 object. f ( ) . await ;
153153}
154154
You can’t perform that action at this time.
0 commit comments