diff --git a/src/test/ui/parser/match-vec-invalid.stderr b/src/test/ui/parser/match-vec-invalid.stderr index 0de9a7523475..49d5a83c5a9f 100644 --- a/src/test/ui/parser/match-vec-invalid.stderr +++ b/src/test/ui/parser/match-vec-invalid.stderr @@ -11,7 +11,7 @@ LL | [1, tail @ .., tail @ ..] => {}, | ^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62254 - = help: add #![feature(slice_patterns)] to the crate attributes to enable + = help: add `#![feature(slice_patterns)]` to the crate attributes to enable error[E0658]: subslice patterns are unstable --> $DIR/match-vec-invalid.rs:4:24 @@ -20,7 +20,7 @@ LL | [1, tail @ .., tail @ ..] => {}, | ^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62254 - = help: add #![feature(slice_patterns)] to the crate attributes to enable + = help: add `#![feature(slice_patterns)]` to the crate attributes to enable error: `..` can only be used once per slice pattern --> $DIR/match-vec-invalid.rs:4:31 diff --git a/src/test/ui/parser/pat-lt-bracket-6.stderr b/src/test/ui/parser/pat-lt-bracket-6.stderr index d526addeb796..45270b314a9b 100644 --- a/src/test/ui/parser/pat-lt-bracket-6.stderr +++ b/src/test/ui/parser/pat-lt-bracket-6.stderr @@ -23,7 +23,7 @@ LL | let Test(&desc[..]) = x; | ^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62254 - = help: add #![feature(slice_patterns)] to the crate attributes to enable + = help: add `#![feature(slice_patterns)]` to the crate attributes to enable error: aborting due to 4 previous errors diff --git a/src/test/ui/parser/pat-tuple-4.stderr b/src/test/ui/parser/pat-tuple-4.stderr index 2e1c167b871b..d126163476c9 100644 --- a/src/test/ui/parser/pat-tuple-4.stderr +++ b/src/test/ui/parser/pat-tuple-4.stderr @@ -23,7 +23,7 @@ LL | (.. pat) => {} | ^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/37854 - = help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable + = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable error[E0029]: only char and numeric types are allowed in range patterns --> $DIR/pat-tuple-4.rs:3:10 diff --git a/src/test/ui/parser/pat-tuple-5.stderr b/src/test/ui/parser/pat-tuple-5.stderr index 9f0118e95736..06f2a59d9090 100644 --- a/src/test/ui/parser/pat-tuple-5.stderr +++ b/src/test/ui/parser/pat-tuple-5.stderr @@ -23,7 +23,7 @@ LL | (pat ..) => {} | ^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/37854 - = help: add #![feature(exclusive_range_pattern)] to the crate attributes to enable + = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable error[E0029]: only char and numeric types are allowed in range patterns --> $DIR/pat-tuple-5.rs:3:10