]> git.proxmox.com Git - rustc.git/blame - src/test/ui/moves/use_of_moved_value_clone_suggestions.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / moves / use_of_moved_value_clone_suggestions.rs
CommitLineData
5e7ed085
FG
1// `Rc` is not ever `Copy`, we should not suggest adding `T: Copy` constraint
2fn 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
6fn main() {}