This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
9d314627aa
rust
/
tests
/
ui
/
borrowck
/
borrowck-move-out-of-overloaded-auto-deref.rs
7 lines
105 B
Rust
Raw
Normal View
History
Unescape
Escape
Region + borrow checker support and tests for overloaded autoderef.
2014-03-11 15:27:55 -05:00
use
std
::
rc
::
Rc
;
pub
fn
main
(
)
{
Changed most vec! invocations to use square braces Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-29 16:54:04 -05:00
let
_x
=
Rc
::
new
(
vec!
[
1
,
2
]
)
.
into_iter
(
)
;
update tests for migrate mode by default
2019-04-22 02:40:08 -05:00
//~^ ERROR [E0507]
Region + borrow checker support and tests for overloaded autoderef.
2014-03-11 15:27:55 -05:00
}
Reference in New Issue
Copy Permalink