]>
git.proxmox.com Git - rustc.git/blob - 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.
6 // compile-flags:-Zborrowck=mir -Zverbose
7 // ^^^^^^^^^ force compiler to dump more region information
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 }