Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
moves
/
use_of_moved_value_clone_suggestions.rs
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
()
{}