about summary refs log tree commit diff
path: root/tests/ui/moves/use_of_moved_value_clone_suggestions.rs
blob: 9a0a397a73387f7f79c623f522372aeb30bdca46 (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) //~ ERROR use of moved value: `t`
}

fn main() {}