From 5bb562ad496f9ec42ec59abfe31d3576266c6a6d Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 22 Mar 2021 20:50:59 -0300 Subject: Initial commit --- tests/98-readme.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/98-readme.rs (limited to 'tests/98-readme.rs') 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() {} -- cgit 1.4.1