summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-106929.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/typeck/issue-106929.rs')
-rw-r--r--tests/ui/typeck/issue-106929.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/typeck/issue-106929.rs b/tests/ui/typeck/issue-106929.rs
new file mode 100644
index 000000000..91342229a
--- /dev/null
+++ b/tests/ui/typeck/issue-106929.rs
@@ -0,0 +1,13 @@
+struct Client;
+
+impl Client {
+ fn post<T: std::ops::Add>(&self, _: T, _: T) {}
+}
+
+fn f() {
+ let c = Client;
+ post(c, ());
+ //~^ ERROR cannot find function `post` in this scope
+}
+
+fn main() {}