7 lines
209 B
Rust
7 lines
209 B
Rust
|
// `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() {}
|