rust/tests/ui/where-clauses/where-clause-region-outlives.rs
2023-01-11 09:32:08 +00:00

13 lines
233 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 };
}