diff options
| author | bors <bors@rust-lang.org> | 2017-02-17 10:46:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-02-17 10:46:59 +0000 |
| commit | dc0bb3f2839c13ab42feacd423f728fbfd2f2f7a (patch) | |
| tree | ebfa66a9d4fc5336a9bba7bed3eff676ad853c34 /src/test/compile-fail | |
| parent | e879aa43ef63962f8e4d797292194a9f40a22a13 (diff) | |
| parent | 18be42c5d7cf0e445befee2ca8aba092808b7e35 (diff) | |
| download | rust-dc0bb3f2839c13ab42feacd423f728fbfd2f2f7a.tar.gz rust-dc0bb3f2839c13ab42feacd423f728fbfd2f2f7a.zip | |
Auto merge of #39485 - canndrew:inference-fix-39297, r=nikomatsakis
Ignore expected type in diverging blocks As per comment: https://github.com/rust-lang/rust/issues/39297#issuecomment-276810343
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-10176.rs | 19 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-5500.rs | 17 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/test/compile-fail/issue-10176.rs b/src/test/compile-fail/issue-10176.rs deleted file mode 100644 index 434b795ff31..00000000000 --- a/src/test/compile-fail/issue-10176.rs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2014 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn f() -> isize { - (return 1, return 2) -//~^ ERROR mismatched types -//~| expected type `isize` -//~| found type `(_, _)` -//~| expected isize, found tuple -} - -fn main() {} diff --git a/src/test/compile-fail/issue-5500.rs b/src/test/compile-fail/issue-5500.rs deleted file mode 100644 index 1cbb7588e17..00000000000 --- a/src/test/compile-fail/issue-5500.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn main() { - &panic!() - //~^ ERROR mismatched types - //~| expected type `()` - //~| found type `&_` - //~| expected (), found reference -} |
