mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-17 07:28:01 +00:00
15 lines
233 B
Rust
15 lines
233 B
Rust
pub trait Clone2 {
|
|
fn clone(&self) -> Self;
|
|
}
|
|
|
|
|
|
trait Getter<T: Clone2> {
|
|
fn get(&self) -> T;
|
|
}
|
|
|
|
impl Getter<isize> for isize { //~ ERROR `isize: Clone2` is not satisfied
|
|
fn get(&self) -> isize { *self }
|
|
}
|
|
|
|
fn main() { }
|