]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/nll/named-lifetimes-basic.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / nll / named-lifetimes-basic.rs
1 // Basic test for named lifetime translation. Check that we
2 // instantiate the types that appear in function arguments with
3 // suitable variables and that we setup the outlives relationship
4 // between R0 and R1 properly.
5
6 // compile-flags:-Zborrowck=mir -Zverbose
7 // ^^^^^^^^^ force compiler to dump more region information
8
9 #![allow(warnings)]
10
11 // EMIT_MIR rustc.use_x.nll.0.mir
12 fn use_x<'a, 'b: 'a, 'c>(w: &'a mut i32, x: &'b u32, y: &'a u32, z: &'c u32) -> bool { true }
13
14 fn main() {
15 }