diff options
| author | bors <bors@rust-lang.org> | 2022-12-15 01:28:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-15 01:28:16 +0000 |
| commit | 939a3ddf943f962807b84a44e8b31d99c0db0a94 (patch) | |
| tree | 6885958f4ba504b353e1d58691900e3d7daa8f5e /src | |
| parent | 16990de53e553bbe1199c6b0a375772f15799414 (diff) | |
| parent | b0d39c6ed039afde82abc40cd830d546a3434d37 (diff) | |
| download | rust-939a3ddf943f962807b84a44e8b31d99c0db0a94.tar.gz rust-939a3ddf943f962807b84a44e8b31d99c0db0a94.zip | |
Auto merge of #104765 - chenyukang:yukang-fix-104639-lifetime-check, r=oli-obk
Find the right lower bound region in the scenario of partial order relations Fixes #104639
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/borrowck/issue-104639-lifetime-order.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/issue-104639-lifetime-order.rs b/src/test/ui/borrowck/issue-104639-lifetime-order.rs new file mode 100644 index 00000000000..db1f8f8d588 --- /dev/null +++ b/src/test/ui/borrowck/issue-104639-lifetime-order.rs @@ -0,0 +1,10 @@ +// edition:2018 +// check-pass + +#![allow(dead_code)] +async fn fail<'a, 'b, 'c>(_: &'static str) where 'a: 'c, 'b: 'c, {} +async fn pass<'a, 'c, 'b>(_: &'static str) where 'a: 'c, 'b: 'c, {} +async fn pass2<'a, 'b, 'c>(_: &'static str) where 'a: 'c, 'b: 'c, 'c: 'a, {} +async fn pass3<'a, 'b, 'c>(_: &'static str) where 'a: 'b, 'b: 'c, 'c: 'a, {} + +fn main() { } |
