diff options
Diffstat (limited to 'tests/02-not-impl.rs')
-rw-r--r-- | tests/02-not-impl.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/02-not-impl.rs b/tests/02-not-impl.rs new file mode 100644 index 0000000..3a14bae --- /dev/null +++ b/tests/02-not-impl.rs @@ -0,0 +1,10 @@ +// Checks that #[impl_trait] checks for impls. + +use impl_trait::impl_trait; + +impl_trait! { + struct Foo { + } +} + +fn main() {} |