diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-15 05:06:54 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-23 14:47:20 +0100 |
| commit | 371446cc50ca5da670e8b2b66d08633f39a33a04 (patch) | |
| tree | 13cf1c49e6a4abe3a9f42fade04f0090d2f4df21 /src/test/ui/error-codes | |
| parent | 8846a6b6bb2dc9d776335fda01f68c9c1c7b94e6 (diff) | |
| download | rust-371446cc50ca5da670e8b2b66d08633f39a33a04.tar.gz rust-371446cc50ca5da670e8b2b66d08633f39a33a04.zip | |
Remove `bindings_after_at` from `INCOMPLETE_FEATURES`.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0007.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0007.stderr | 12 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/test/ui/error-codes/E0007.rs b/src/test/ui/error-codes/E0007.rs index 4f7fc0dc232..022ac5fc113 100644 --- a/src/test/ui/error-codes/E0007.rs +++ b/src/test/ui/error-codes/E0007.rs @@ -1,5 +1,4 @@ #![feature(bindings_after_at)] -//~^ WARN the feature `bindings_after_at` is incomplete and may cause the compiler to crash fn main() { let x = Some("s".to_string()); diff --git a/src/test/ui/error-codes/E0007.stderr b/src/test/ui/error-codes/E0007.stderr index d7b8050c3a4..31af9171725 100644 --- a/src/test/ui/error-codes/E0007.stderr +++ b/src/test/ui/error-codes/E0007.stderr @@ -1,19 +1,11 @@ -warning: the feature `bindings_after_at` is incomplete and may cause the compiler to crash - --> $DIR/E0007.rs:1:12 - | -LL | #![feature(bindings_after_at)] - | ^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(incomplete_features)]` on by default - error[E0007]: cannot bind by-move with sub-bindings - --> $DIR/E0007.rs:7:9 + --> $DIR/E0007.rs:6:9 | LL | op_string @ Some(s) => {}, | ^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it error[E0382]: use of moved value - --> $DIR/E0007.rs:7:26 + --> $DIR/E0007.rs:6:26 | LL | let x = Some("s".to_string()); | - move occurs because `x` has type `std::option::Option<std::string::String>`, which does not implement the `Copy` trait |
