diff options
Diffstat (limited to 'tests/ui/impl-trait/extra-item.rs')
-rw-r--r-- | tests/ui/impl-trait/extra-item.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/extra-item.rs b/tests/ui/impl-trait/extra-item.rs new file mode 100644 index 000000000..d82237cce --- /dev/null +++ b/tests/ui/impl-trait/extra-item.rs @@ -0,0 +1,10 @@ +// aux-build:extra-item.rs +// compile-flags:--extern extra_item + +struct S; + +impl extra_item::MyTrait for S { + fn extra() {} //~ ERROR method `extra` is not a member of trait `extra_item::MyTrait` +} + +fn main() {} |