diff options
Diffstat (limited to 'third_party/rust/inherent/tests/ui/not-trait-impl.rs')
-rw-r--r-- | third_party/rust/inherent/tests/ui/not-trait-impl.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/rust/inherent/tests/ui/not-trait-impl.rs b/third_party/rust/inherent/tests/ui/not-trait-impl.rs new file mode 100644 index 0000000000..a9a6a11628 --- /dev/null +++ b/third_party/rust/inherent/tests/ui/not-trait-impl.rs @@ -0,0 +1,10 @@ +use inherent::inherent; + +struct Struct; + +#[inherent] +impl Struct { + fn f() {} +} + +fn main() {} |