Logo
Explore Help
Register Sign In
mikros/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Packages Projects Releases Wiki Activity
rust/src/test/compile-fail/borrowck-move-from-unsafe-ptr.rs

7 lines
145 B
Rust
Raw Normal View History

handle moves in let initializers and allow moves from unsafe ptrs Related to issue #2657, but this is not a complete fix.
2012-06-20 20:08:25 -07:00
fn foo(x: *~int) -> ~int {
change the test suite `//! kind` syntax to `//~ kind` in order to avoid a conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00
let y <- *x; //~ ERROR dereference of unsafe pointer requires unsafe function or block
handle moves in let initializers and allow moves from unsafe ptrs Related to issue #2657, but this is not a complete fix.
2012-06-20 20:08:25 -07:00
ret y;
}
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 1025ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API