mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
17 lines
323 B
Rust
17 lines
323 B
Rust
// issue: #116877
|
|
//@ revisions: sized clone
|
|
//@ check-pass
|
|
|
|
#[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 () {}
|