]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/use_of_moved_value_clone_suggestions.rs
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / moves / use_of_moved_value_clone_suggestions.rs
1 // `Rc` is not ever `Copy`, we should not suggest adding `T: Copy` constraint
2 fn duplicate_rc<T>(t: std::rc::Rc<T>) -> (std::rc::Rc<T>, std::rc::Rc<T>) {
3     (t, t) //~ use of moved value: `t`
4 }
5
6 fn main() {}