diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-04-20 17:07:58 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2018-04-20 18:09:28 +0200 |
| commit | fadabd6fbbfe1a401bbdd4ba0919b21ba4f7c5d2 (patch) | |
| tree | 271fba7df00efddcfaec54a88dabbcf038158046 /src/test/compile-fail/loop-break-value.rs | |
| parent | 1a4443995c91648460a5483ca8b7886cd04197e2 (diff) | |
| download | rust-fadabd6fbbfe1a401bbdd4ba0919b21ba4f7c5d2.tar.gz rust-fadabd6fbbfe1a401bbdd4ba0919b21ba4f7c5d2.zip | |
Revert stabilization of `feature(never_type)`.
This commit is just covering the feature gate itself and the tests that made direct use of `!` and thus need to opt back into the feature. A follow on commit brings back the other change that motivates the revert: Namely, going back to the old rules for falling back to `()`.
Diffstat (limited to 'src/test/compile-fail/loop-break-value.rs')
| -rw-r--r-- | src/test/compile-fail/loop-break-value.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/compile-fail/loop-break-value.rs b/src/test/compile-fail/loop-break-value.rs index 5ef46bb27fd..938f7fba2a0 100644 --- a/src/test/compile-fail/loop-break-value.rs +++ b/src/test/compile-fail/loop-break-value.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(never_type)] + fn main() { let val: ! = loop { break break; }; //~^ ERROR mismatched types |
