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
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/resolve/bad-env-capture3.rs

9 lines
166 B
Rust
Raw Normal View History

Various tweaks
2017-12-19 19:53:39 -08:00
// error-pattern: can't capture dynamic environment in a fn item
Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
fn foo(x: isize) {
Move capture checking into resolve.rs Drops capture.rs. The new algorithm also checks for captures function arguments and obj fields.
2011-05-13 11:57:58 +02:00
fn mth() {
Register new snapshots, purge log_err and log_full in favour of log(...).
2011-12-22 17:53:53 -08:00
fn bar() { log(debug, x); }
Move capture checking into resolve.rs Drops capture.rs. The new algorithm also checks for captures function arguments and obj fields.
2011-05-13 11:57:58 +02:00
}
}
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
fn main() { foo(2); }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2921ms 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