Open
Description
to get methods from alias bounds
fn foo<T: Clone>(x: T, choose: bool) -> impl Clone {
if choose {
foo(x, false).clone()
} else {
x
}
}
https://rust.godbolt.org/z/vecjoaYzK
People rely on this behavior, see rust-lang/rust#117866, or more specifically, the crater run in rust-lang/rust#120798 (comment)
Metadata
Metadata
Assignees
Labels
No labels