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

9 lines
167 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00: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: 4911ms 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