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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
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: 4526ms Template: 19ms
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