This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-06-07 12:48:30 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
58e901b6fd
rust
/
tests
/
ui
/
nll
/
move-subpaths-moves-root.rs
6 lines
112 B
Rust
Raw
Normal View
History
Unescape
Escape
Inspect parents paths when checking for moves
2018-09-15 15:29:29 +00:00
fn
main
(
)
{
let
x
=
(
vec!
[
1
,
2
,
3
]
,
)
;
drop
(
x
.
0
)
;
Be consistent when describing a move as a 'partial' in diagnostics When an error occurs due to a partial move, we would use the world "partial" in some parts of the error message, but not in others. This commit ensures that we use the word 'partial' in either all or none of the diagnostic messages. Additionally, we no longer describe a move out of a `Box` via `*` as a 'partial move'. This was a pre-existing issue, but became more noticable when the word 'partial' is used in more places.
2020-08-08 17:16:43 +00:00
drop
(
x
)
;
//~ ERROR use of partially moved value
Inspect parents paths when checking for moves
2018-09-15 15:29:29 +00:00
}
Reference in New Issue
Copy Permalink