Skip to content

Commit 8a6137d

Browse files
./x test --bless
1 parent 2abf4dd commit 8a6137d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pub fn main() {
22
let a = &[1, 2, 3, 4, 5];
33
let b = &[2, 3];
4-
let mut c = a.split_pattern(b);
4+
let mut c = a.split_pattern(b); //~ ERROR use of unstable library feature 'split_pattern'
55
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error[E0658]: use of unstable library feature 'split_pattern'
2+
--> $DIR/feature-gate-split-pattern.rs:4:19
3+
|
4+
LL | let mut c = a.split_pattern(b);
5+
| ^^^^^^^^^^^^^
6+
|
7+
= note: see issue #49036 <https://github.com/rust-lang/rust/issues/49036> for more information
8+
= help: add `#![feature(split_pattern)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+
error: aborting due to 1 previous error
12+
13+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)