about summary refs log tree commit diff
path: root/tests/ui/async-await/issue-67651.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issue-67651.rs')
-rw-r--r--tests/ui/async-await/issue-67651.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-67651.rs b/tests/ui/async-await/issue-67651.rs
new file mode 100644
index 00000000000..bd96a3b709b
--- /dev/null
+++ b/tests/ui/async-await/issue-67651.rs
@@ -0,0 +1,20 @@
+// edition:2018
+
+trait From {
+    fn from();
+}
+
+impl From for () {
+    fn from() {}
+}
+
+impl From for () {
+//~^ ERROR conflicting implementations of trait
+    fn from() {}
+}
+
+fn bar() -> impl core::future::Future<Output = ()> {
+    async move { From::from() }
+}
+
+fn main() {}