diff options
Diffstat (limited to 'tests/ui/methods/issues/issue-105732.rs')
-rw-r--r-- | tests/ui/methods/issues/issue-105732.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/methods/issues/issue-105732.rs b/tests/ui/methods/issues/issue-105732.rs new file mode 100644 index 000000000..d70050658 --- /dev/null +++ b/tests/ui/methods/issues/issue-105732.rs @@ -0,0 +1,14 @@ +#![feature(auto_traits)] + +auto trait Foo { + fn g(&self); //~ ERROR auto traits cannot have associated items +} + +trait Bar { + fn f(&self) { + // issue #105788 + self.g(); //~ ERROR no method named `g` found for reference `&Self` in the current scope + } +} + +fn main() {} |