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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/binding/pattern-in-closure.rs

15 lines
278 B
Rust
Raw Normal View History

Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 14:18:55 +02:00
// run-pass
Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, to silence stderr output.
2018-08-31 15:02:01 +02:00
#![allow(non_shorthand_field_patterns)]
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-06 18:41:06 -08:00
struct Foo {
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
x: isize,
y: isize
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-06 18:41:06 -08:00
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
let f = |(x, _): (isize, isize)| println!("{}", x + 1);
remove all kind annotations from closures
2015-02-01 12:44:15 -05:00
let g = |Foo { x: x, y: _y }: Foo| println!("{}", x + 1);
rustc: Support irrefutable patterns in function arguments. r=nmatsakis
2012-11-06 18:41:06 -08:00
f((2, 3));
g(Foo { x: 1, y: 2 });
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3433ms 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