rust/tests/ui/async-await/multiple-lifetimes
Dylan DPC 83f10ea5b7
Rollup merge of #105300 - aliemjay:member-lower, r=oli-obk
rework min_choice algorithm of member constraints

See [this comment](https://github.com/rust-lang/rust/pull/105300#issuecomment-1384312743) for the description of the new algorithm.

Fixes #63033
Fixes #104639

This uses a more general algorithm than #89056 that doesn't treat `'static` as a special case. It thus accepts more code. For example:
```rust
async fn test2<'s>(_: &'s u8, _: &'_ &'s u8, _: &'_ &'s u8) {}
```
I claim it's more correct as well because it fixes #104639.

cc ``@nikomatsakis`` ``@lqd`` ``@tmandry`` ``@eholk`` ``@chenyukang`` ``@oli-obk``

r? types
2023-02-15 12:24:53 +05:30
..
elided.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fn-ptr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hrtb.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
member-constraints-min-choice-issue-63033.rs rework min_choice algorithm of member constraints 2023-01-17 18:38:49 +03:00
named.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-relation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ret-impl-trait-fg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ret-impl-trait-one.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ret-impl-trait-one.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ret-ref.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ret-ref.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
variance.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00