mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
276 B
Rust
18 lines
276 B
Rust
//@ known-bug: rust-lang/rust#126896
|
|
//@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes
|
|
|
|
#![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() {
|
|
}
|