about summary refs log tree commit diff
path: root/tests/ui/where-clauses/where-clause-region-outlives.rs
blob: 47a6d4682044677c10d9fdf8cbad80c311b02e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]

struct A<'a, 'b> where 'a : 'b { x: &'a isize, y: &'b isize }

fn main() {
    let x = 1;
    let y = 1;
    let a = A { x: &x, y: &y };
}