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
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust/tests/ui/hashmap/hashmap-lifetimes.rs

9 lines
194 B
Rust
Raw Normal View History

Fix free lifetime vars in HashMap's iterators
2014-09-24 19:38:15 +01:00
fn main() {
let mut my_stuff = std::collections::HashMap::new();
Kill more `isize`s
2015-01-31 17:23:42 +01:00
my_stuff.insert(0, 42);
Fix free lifetime vars in HashMap's iterators
2014-09-24 19:38:15 +01:00
let mut it = my_stuff.iter();
Remove deprecated functionality This removes a large array of deprecated functionality, regardless of how recently it was deprecated. The purpose of this commit is to clean out the standard libraries and compiler for the upcoming alpha release. Some notable compiler changes were to enable warnings for all now-deprecated command line arguments (previously the deprecated versions were silently accepted) as well as removing deriving(Zero) entirely (the trait was removed). The distribution no longer contains the libtime or libregex_macros crates. Both of these have been deprecated for some time and are available externally.
2015-01-01 23:53:35 -08:00
my_stuff.insert(1, 43); //~ ERROR cannot borrow
Removed `ignore-test-compare-mode-nll` from hashmap-lifetimes.rs by strengthening the test there.
2018-08-15 23:33:14 +02:00
it;
Fix free lifetime vars in HashMap's iterators
2014-09-24 19:38:15 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3938ms Template: 3ms
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