2023-10-18 01:19:04 -05:00
|
|
|
// issue: #116877
|
|
|
|
//@ revisions: sized clone
|
2024-03-06 04:21:27 -06:00
|
|
|
//@ check-pass
|
2023-10-18 01:19:04 -05:00
|
|
|
|
|
|
|
#[cfg(sized)] fn rpit() -> impl Sized {}
|
|
|
|
#[cfg(clone)] fn rpit() -> impl Clone {}
|
|
|
|
|
|
|
|
fn same_output<Out>(_: impl Fn() -> Out, _: impl Fn() -> Out) {}
|
|
|
|
|
|
|
|
pub fn foo() -> impl Sized {
|
|
|
|
same_output(rpit, foo);
|
|
|
|
same_output(foo, rpit);
|
|
|
|
rpit()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main () {}
|