summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-104328.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/issue-104328.rs')
-rw-r--r--tests/ui/suggestions/issue-104328.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-104328.rs b/tests/ui/suggestions/issue-104328.rs
new file mode 100644
index 000000000..c3707baf7
--- /dev/null
+++ b/tests/ui/suggestions/issue-104328.rs
@@ -0,0 +1,12 @@
+#![feature(object_safe_for_dispatch)]
+
+trait Foo {
+ fn f() {}
+}
+
+impl Foo for dyn Sized {}
+
+fn main() {
+ Foo::f();
+ //~^ ERROR cannot call associated function on trait without specifying the corresponding `impl` type
+}