blob: 9a0a397a73387f7f79c623f522372aeb30bdca46 [file] [log] [blame]
// `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() {}