Closed
Description
$ rusti (git)-[master] -
WARNING: The Rust REPL is experimental and may be
unstable. If you encounter problems, please use the
compiler instead. Type :help for help.
rusti> let v = ~[1,2,3];
rusti> v
<anon>:43:36: 43:37 error: use of moved value: `v`
<anon>:43 let local: ~[int] = v;
^
<anon>:41:0: 41:1 note: `v` moved here because it has type `~[int]`, which is moved by default (use `copy` to override)
<anon>:41 v
^
error: aborting due to previous error
rust: task failed at 'explicit failure', /home/nksm/pkg/rust/src/rust/src/libsyntax/diagnostic.rs:95
I think rusti
should prints the value of v
.
Metadata
Metadata
Assignees
Labels
No labels