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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/block-result/issue-20862.rs

10 lines
142 B
Rust
Raw Normal View History

Add regression test for #20862 Closes #20862.
2015-05-05 15:27:49 +02:00
fn foo(x: i32) {
|y| x + y
port compiletest to use JSON output This uncovered a lot of bugs in compiletest and also some shortcomings of our existing JSON output. We had to add information to the JSON output, such as suggested text and macro backtraces. We also had to fix various bugs in the existing tests. Joint work with jntrnr.
2016-04-15 21:23:50 -04:00
//~^ ERROR: mismatched types
Add regression test for #20862 Closes #20862.
2015-05-05 15:27:49 +02:00
}
fn main() {
let x = foo(5)(2);
//~^ ERROR: expected function, found `()`
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2819ms 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