summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-117794.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/issue-117794.rs')
-rw-r--r--tests/ui/traits/issue-117794.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-117794.rs b/tests/ui/traits/issue-117794.rs
new file mode 100644
index 000000000..a66d6eb10
--- /dev/null
+++ b/tests/ui/traits/issue-117794.rs
@@ -0,0 +1,10 @@
+trait Foo {}
+
+trait T {
+ fn a(&self) -> impl Foo {
+ self.b(|| 0)
+ //~^ ERROR no method named `b` found for reference `&Self` in the current scope
+ }
+}
+
+fn main() {}