mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
12 lines
202 B
Rust
12 lines
202 B
Rust
//@ 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 };
|
|
}
|