diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-03-22 20:50:59 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-03-22 20:52:47 -0300 |
commit | 5bb562ad496f9ec42ec59abfe31d3576266c6a6d (patch) | |
tree | 4c792fcc67d4211c6c5b4a0e18ebb832b0d4ce66 /tests/98-readme.rs |
Initial commit
Diffstat (limited to 'tests/98-readme.rs')
-rw-r--r-- | tests/98-readme.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/98-readme.rs b/tests/98-readme.rs new file mode 100644 index 0000000..bad1f34 --- /dev/null +++ b/tests/98-readme.rs @@ -0,0 +1,20 @@ +use impl_trait::impl_trait; + +struct Foo; + +trait Bar {} + +impl_trait! { + /// Yes, you can write docs here. + impl Foo { + /// You can write docs here too. + fn as_dyn_bar(&self) -> &dyn Bar { + self + } + /// You can even write docs here! + impl trait Bar { + } + } +} + +fn main() {} |