summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-103646.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-103646.rs')
-rw-r--r--tests/ui/suggestions/issue-103646.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-103646.rs b/tests/ui/suggestions/issue-103646.rs
new file mode 100644
index 000000000..f679640c5
--- /dev/null
+++ b/tests/ui/suggestions/issue-103646.rs
@@ -0,0 +1,11 @@
+trait Cat {
+ fn nya() {}
+}
+
+fn uwu<T: Cat>(c: T) {
+ c.nya();
+ //~^ ERROR no method named `nya` found for type parameter `T` in the current scope
+ //~| Suggestion T::nya()
+}
+
+fn main() {}