summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-104639-lifetime-order.rs
blob: db1f8f8d58848bc175c98076d21f8412346c4328 (plain)
1
2
3
4
5
6
7
8
9
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() { }