(root)/
gcc-13.2.0/
gcc/
testsuite/
rust/
compile/
issue-1786.rs
#[lang = "clone"]
trait Clone {
    fn clone(&self) -> Self;

    fn clone_from(&mut self, source: &Self) {
        *self = source.clone()
    }
}

#[lang = "copy"]
pub trait Copy: Clone {
    // Empty.
}

mod impls {
    use super::Clone;

    impl Clone for char {
        fn clone(&self) -> Self {
            *self
        }
    }
}