mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 11:11:14 +00:00
14 lines
271 B
Rust
14 lines
271 B
Rust
//@ run-pass
|
|
// Issue #122622: `#[derive(Clone)]` should work for HRTB function type taking an associated type
|
|
#![allow(dead_code)]
|
|
trait SomeTrait {
|
|
type SomeType<'a>;
|
|
}
|
|
|
|
#[derive(Clone)]
|
|
struct Foo<T: SomeTrait> {
|
|
x: for<'a> fn(T::SomeType<'a>)
|
|
}
|
|
|
|
fn main() {}
|