mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
slice_patterns have been stabilized.
This commit is contained in:
parent
7ae24429ab
commit
b2c4f09d77
@ -3,7 +3,6 @@
|
||||
#![feature(box_syntax)]
|
||||
#![feature(box_patterns)]
|
||||
#![feature(rustc_private)]
|
||||
#![feature(slice_patterns)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![allow(clippy::missing_docs_in_private_items, clippy::must_use_candidate)]
|
||||
#![recursion_limit = "512"]
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::all)]
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let v = Some(true);
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::all)]
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let v = Some(true);
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: the `y @ _` pattern can be written as just `y`
|
||||
--> $DIR/patterns.rs:11:9
|
||||
--> $DIR/patterns.rs:10:9
|
||||
|
|
||||
LL | y @ _ => (),
|
||||
| ^^^^^ help: try: `y`
|
||||
|
Loading…
Reference in New Issue
Block a user