rust/tests/ui/where-clauses/where-clause-region-outlives.rs
2024-02-16 20:02:50 +00:00

13 lines
235 B
Rust

//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
//@ pretty-expanded FIXME #23616
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 };
}