about summary refs log tree commit diff
path: root/tests/ui/async-await/multiple-lifetimes
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2023-01-16 01:31:58 +0300
committerAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2023-01-17 18:38:49 +0300
commit837c1aff0546edca18b43fbfc65b8dacf0b0b699 (patch)
treef434baeb3ff12e942abd82b1dcee4e7fd3049a6d /tests/ui/async-await/multiple-lifetimes
parent159ba8a92c9e2fa4121f106176309521f4af87e9 (diff)
downloadrust-837c1aff0546edca18b43fbfc65b8dacf0b0b699.tar.gz
rust-837c1aff0546edca18b43fbfc65b8dacf0b0b699.zip
rework min_choice algorithm of member constraints
See the inline comments for the description of the new algorithm.
Diffstat (limited to 'tests/ui/async-await/multiple-lifetimes')
-rw-r--r--tests/ui/async-await/multiple-lifetimes/member-constraints-min-choice-issue-63033.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/async-await/multiple-lifetimes/member-constraints-min-choice-issue-63033.rs b/tests/ui/async-await/multiple-lifetimes/member-constraints-min-choice-issue-63033.rs
new file mode 100644
index 00000000000..614f1897291
--- /dev/null
+++ b/tests/ui/async-await/multiple-lifetimes/member-constraints-min-choice-issue-63033.rs
@@ -0,0 +1,10 @@
+// Regression test for #63033.
+
+// check-pass
+// edition: 2018
+
+async fn test1(_: &'static u8, _: &'_ u8, _: &'_ u8) {}
+
+async fn test2<'s>(_: &'s u8, _: &'_ &'s u8, _: &'_ &'s u8) {}
+
+fn main() {}