mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 19:08:20 +00:00
14 lines
215 B
Rust
14 lines
215 B
Rust
//@ check-pass
|
|
|
|
// Ensure that we can resolve a shorthand projection in an item bound in an RPITIT.
|
|
|
|
pub trait Bar {
|
|
type Foo;
|
|
}
|
|
|
|
pub trait Baz {
|
|
fn boom<X: Bar>() -> impl Bar<Foo = X::Foo>;
|
|
}
|
|
|
|
fn main() {}
|