We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e94be commit a8bb0c1Copy full SHA for a8bb0c1
src/traits/resolution.md
@@ -191,12 +191,16 @@ trait Get {
191
fn get(&self) -> Self;
192
}
193
194
-impl<T:Copy> Get for T {
195
- fn get(&self) -> T { *self }
+impl<T: Copy> Get for T {
+ fn get(&self) -> T {
196
+ *self
197
+ }
198
199
-impl<T:Get> Get for Box<T> {
- fn get(&self) -> Box<T> { Box::new(get_it(&**self)) }
200
+impl<T: Get> Get for Box<T> {
201
+ fn get(&self) -> Box<T> {
202
+ Box::new(<T>::get(self))
203
204
205
```
206
0 commit comments