Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
55b6f649024b372af901b3412a6d36c4284ccf3d
rust/tests/ui/borrowck/issue-17718-static-move.rs

8 lines
134 B
Rust
Raw Normal View History

Remove all unstable deprecated functionality This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-08-11 17:27:05 -07:00
struct Foo;
const INIT: Foo = Foo;
test: Convert statics to constants Additionally, add lots of tests for new functionality around statics and `static mut`.
2014-10-06 21:16:35 -07:00
static FOO: Foo = INIT;
fn main() {
let _a = FOO; //~ ERROR: cannot move out of static item
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2765ms Template: 2ms
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