]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-27282-reborrow-ref-mut-in-guard.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-27282-reborrow-ref-mut-in-guard.rs
index 39d54f6e7ae28f65df90fda4a4f04ea7561ce7f4..c79b1873241c8587cca6cff30d11b0d3668cfe19 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2018 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.
-
 // Issue 27282: This is a variation on issue-27282-move-ref-mut-into-guard.rs
 //
 // It reborrows instead of moving the `ref mut` pattern borrow. This
@@ -15,8 +5,8 @@
 // reject it. But I want to make sure that we continue to reject it
 // (under NLL) even when that conservaive check goes away.
 
-// compile-flags: -Z disable-ast-check-for-mutation-in-guard
 
+#![feature(bind_by_move_pattern_guards)]
 #![feature(nll)]
 
 fn main() {