mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
17 lines
251 B
Rust
17 lines
251 B
Rust
// issue: #111906
|
|
//@ check-pass
|
|
|
|
#![allow(unconditional_recursion)]
|
|
|
|
fn foo<'a: 'a>() -> impl Sized {
|
|
let _: () = foo::<'a>();
|
|
loop {}
|
|
}
|
|
|
|
fn bar<'a: 'a>() -> impl Sized + 'a {
|
|
let _: *mut &'a () = bar::<'a>();
|
|
loop {}
|
|
}
|
|
|
|
fn main() {}
|