1 // Regression test for #89606. Used to ICE.
4 // revisions: twenty_eighteen twenty_twentyone
5 // [twenty_eighteen]compile-flags: --edition 2018
6 // [twenty_twentyone]compile-flags: --edition 2021
8 struct S<'a>(Option<&'a mut i32>);
10 fn by_ref(s: &mut S<'_>) {
17 fn by_value(s: S<'_>) {
24 struct V<'a>((Option<&'a mut i32>,));
26 fn nested(v: &mut V<'_>) {
38 let mut v = V((None, ));