diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-30 05:56:02 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-08 01:39:24 +0200 |
| commit | c6bfb1e9fdce7b94b4258d20d7402d551b30096c (patch) | |
| tree | 09335cae92e38510625e3aa84ff810e7f8f23eb1 /src/test/ui/error-codes | |
| parent | 642993e6dca427ce3cc5ca97bccaf6f6c872eb16 (diff) | |
| download | rust-c6bfb1e9fdce7b94b4258d20d7402d551b30096c.tar.gz rust-c6bfb1e9fdce7b94b4258d20d7402d551b30096c.zip | |
Tests: No longer emitting 0008, E0301, E0302.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0301.rs | 7 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0301.stderr | 11 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0302.rs | 8 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0302.stderr | 10 |
4 files changed, 0 insertions, 36 deletions
diff --git a/src/test/ui/error-codes/E0301.rs b/src/test/ui/error-codes/E0301.rs deleted file mode 100644 index 0df04036bb7..00000000000 --- a/src/test/ui/error-codes/E0301.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn main() { - match Some(()) { - None => { }, - option if option.take().is_none() => {}, - Some(_) => { } //~^ ERROR E0596 - } -} diff --git a/src/test/ui/error-codes/E0301.stderr b/src/test/ui/error-codes/E0301.stderr deleted file mode 100644 index 661b86e3894..00000000000 --- a/src/test/ui/error-codes/E0301.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0596]: cannot borrow `option` as mutable, as it is immutable for the pattern guard - --> $DIR/E0301.rs:4:19 - | -LL | option if option.take().is_none() => {}, - | ^^^^^^ cannot borrow as mutable - | - = note: variables bound in patterns are immutable until the end of the pattern guard - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0596`. diff --git a/src/test/ui/error-codes/E0302.rs b/src/test/ui/error-codes/E0302.rs deleted file mode 100644 index 28a1bc31bea..00000000000 --- a/src/test/ui/error-codes/E0302.rs +++ /dev/null @@ -1,8 +0,0 @@ -fn main() { - match Some(()) { - None => { }, - option if { option = None; false } => { }, - //~^ ERROR cannot assign to `option`, as it is immutable for the pattern guard - Some(_) => { } - } -} diff --git a/src/test/ui/error-codes/E0302.stderr b/src/test/ui/error-codes/E0302.stderr deleted file mode 100644 index 5854772f1d3..00000000000 --- a/src/test/ui/error-codes/E0302.stderr +++ /dev/null @@ -1,10 +0,0 @@ -error[E0594]: cannot assign to `option`, as it is immutable for the pattern guard - --> $DIR/E0302.rs:4:21 - | -LL | option if { option = None; false } => { }, - | ^^^^^^^^^^^^^ cannot assign - | - = note: variables bound in patterns are immutable until the end of the pattern guard - -error: aborting due to previous error - |
