]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55401.rs
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / issue-55401.rs
1 fn static_to_a_to_static_through_ref_in_tuple<'a>(x: &'a u32) -> &'static u32 {
2     let (ref y, _z): (&'a u32, u32) = (&22, 44);
3     *y //~ ERROR
4 }
5
6 fn main() {}