]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/nll/named-lifetimes-basic.rs
Rollup merge of #99864 - klensy:bootstrap-art-dupe, r=jyn514
[rust.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: -Zverbose
7 //                ^^^^^^^^^ force compiler to dump more region information
8
9 #![allow(warnings)]
10
11 // EMIT_MIR named_lifetimes_basic.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 }