Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
moves
/
use_of_moved_value_clone_suggestions.rs
blob: d5c8d4e6bdf2b76852167e32974a089fc06f70ec [
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
)
//~ use of moved value: `t`
}
fn
main
()
{}