2024-07-04 16:44:10 -05:00
|
|
|
//@ known-bug: rust-lang/rust#126896
|
2024-08-03 13:11:31 -05:00
|
|
|
//@ compile-flags: -Zvalidate-mir -Zinline-mir=yes
|
2024-07-04 16:44:10 -05:00
|
|
|
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
type Two<'a, 'b> = impl std::fmt::Debug;
|
|
|
|
|
|
|
|
fn set(x: &mut isize) -> isize {
|
|
|
|
*x
|
|
|
|
}
|
|
|
|
|
|
|
|
fn d(x: Two) {
|
|
|
|
let c1 = || set(x);
|
|
|
|
c1;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|