• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0658]: use of unstable library feature 'is_sorted': new API
2  --> $DIR/feature-gate-is_sorted.rs:3:33
3   |
4LL |     assert!([1, 2, 2, 9].iter().is_sorted());
5   |                                 ^^^^^^^^^
6   |
7   = note: see issue #53485 <https://github.com/rust-lang/rust/issues/53485> for more information
8   = help: add `#![feature(is_sorted)]` to the crate attributes to enable
9
10error[E0658]: use of unstable library feature 'is_sorted': new API
11  --> $DIR/feature-gate-is_sorted.rs:5:39
12   |
13LL |     assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
14   |                                       ^^^^^^^^^^^^^^^^
15   |
16   = note: see issue #53485 <https://github.com/rust-lang/rust/issues/53485> for more information
17   = help: add `#![feature(is_sorted)]` to the crate attributes to enable
18
19error[E0658]: use of unstable library feature 'is_sorted': new API
20  --> $DIR/feature-gate-is_sorted.rs:9:26
21   |
22LL |     assert!([1, 2, 2, 9].is_sorted());
23   |                          ^^^^^^^^^
24   |
25   = note: see issue #53485 <https://github.com/rust-lang/rust/issues/53485> for more information
26   = help: add `#![feature(is_sorted)]` to the crate attributes to enable
27
28error[E0658]: use of unstable library feature 'is_sorted': new API
29  --> $DIR/feature-gate-is_sorted.rs:11:32
30   |
31LL |     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
32   |                                ^^^^^^^^^^^^^^^^
33   |
34   = note: see issue #53485 <https://github.com/rust-lang/rust/issues/53485> for more information
35   = help: add `#![feature(is_sorted)]` to the crate attributes to enable
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0658`.
40