Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
async-await
/
issues
/
issue-66958-non-copy-infered-type-arg.rs
blob: c8c2702ec447efd85b05c5d797ecbecb00e586aa [
file
] [
log
] [
blame
]
// edition:2018
struct
Ia
<
S
>(
S
);
impl
<
S
>
Ia
<
S
>
{
fn
partial
(
_
:
S
)
{}
fn
full
(
self
)
{}
async
fn
crash
(
self
)
{
Self
::
partial
(
self
.
0
);
Self
::
full
(
self
);
//~ ERROR use of moved value: `self`
}
}
fn
main
()
{}