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/closures/old-closure-arg-call-as.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
184 B
Rust
Raw Normal View History

tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
//@ run-pass
Allow various lints as part of ui-ifying `src/test/run-pass` suite.
2018-09-14 12:20:28 +02:00
#![allow(non_snake_case)]
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 13:13:15 -07:00
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
fn asBlock<F>(f: F) -> usize where F: FnOnce() -> usize {
Convert ret to return
2012-08-01 17:30:05 -07:00
return f();
split proto from fn_decl, as not all fn_decls know the proto. this will address the (crashing) new test added.
2011-12-29 20:07:55 -08:00
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
Remove integer suffixes where the types in compiled code are identical.
2015-03-03 10:42:26 +02:00
let x = asBlock(|| 22);
assert_eq!(x, 22);
split proto from fn_decl, as not all fn_decls know the proto. this will address the (crashing) new test added.
2011-12-29 20:07:55 -08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3368ms 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