diff options
| author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2023-01-16 01:31:58 +0300 |
|---|---|---|
| committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2023-01-17 18:38:49 +0300 |
| commit | 837c1aff0546edca18b43fbfc65b8dacf0b0b699 (patch) | |
| tree | f434baeb3ff12e942abd82b1dcee4e7fd3049a6d /tests/ui/async-await/multiple-lifetimes | |
| parent | 159ba8a92c9e2fa4121f106176309521f4af87e9 (diff) | |
| download | rust-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.rs | 10 |
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() {} |
