mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +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() {}
|