summaryrefslogtreecommitdiffstats
path: root/src/test/ui/moves/use_of_moved_value_clone_suggestions.rs
blob: d5c8d4e6bdf2b76852167e32974a089fc06f70ec (plain)
1
2
3
4
5
6
// `Rc` is not ever `Copy`, we should not suggest adding `T: Copy` constraint
fn duplicate_rc<T>(t: std::rc::Rc<T>) -> (std::rc::Rc<T>, std::rc::Rc<T>) {
    (t, t) //~ use of moved value: `t`
}

fn main() {}