mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-15 03:43:33 +00:00
20 lines
252 B
Rust
20 lines
252 B
Rust
// check-pass
|
|
|
|
#![feature(associated_type_bounds)]
|
|
|
|
trait Trait {
|
|
type Type;
|
|
|
|
fn method(&self) -> impl Trait<Type: '_>;
|
|
}
|
|
|
|
impl Trait for () {
|
|
type Type = ();
|
|
|
|
fn method(&self) -> impl Trait<Type: '_> {
|
|
()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|