diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -94,7 +94,7 @@ Dynamize also understands if you wrap associated types in the following types: Note that since these are resolved recursively you can actually nest these arbitrarily so e.g. the following also just works: -```rs +```rust ignore fn example(&self) -> Result<Option<Self::Item>, Self::Error>; ``` @@ -103,7 +103,7 @@ fn example(&self) -> Result<Option<Self::Item>, Self::Error>; In order to be object-safe methods must not have generics, so dynamize simply moves them to the trait definition: -```rs +```rust trait Gen { fn foobar<A>(&self, a: A) -> A; } @@ -111,7 +111,7 @@ trait Gen { becomes -```rs +```rust trait DynGen<A> { fn foobar(&self, a: A) -> A; } |