]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-104639-lifetime-order.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / borrowck / issue-104639-lifetime-order.rs
1 // edition:2018
2 // check-pass
3
4 #![allow(dead_code)]
5 async fn fail<'a, 'b, 'c>(_: &'static str) where 'a: 'c, 'b: 'c, {}
6 async fn pass<'a, 'c, 'b>(_: &'static str) where 'a: 'c, 'b: 'c, {}
7 async fn pass2<'a, 'b, 'c>(_: &'static str) where 'a: 'c, 'b: 'c, 'c: 'a, {}
8 async fn pass3<'a, 'b, 'c>(_: &'static str) where 'a: 'b, 'b: 'c, 'c: 'a, {}
9
10 fn main() { }