]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-is_sorted.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-is_sorted.stderr
1 error[E0658]: use of unstable library feature 'is_sorted': new API
2   --> $DIR/feature-gate-is_sorted.rs:3:33
3    |
4 LL |     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
10 error[E0658]: use of unstable library feature 'is_sorted': new API
11   --> $DIR/feature-gate-is_sorted.rs:5:39
12    |
13 LL |     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
19 error[E0658]: use of unstable library feature 'is_sorted': new API
20   --> $DIR/feature-gate-is_sorted.rs:9:26
21    |
22 LL |     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
28 error[E0658]: use of unstable library feature 'is_sorted': new API
29   --> $DIR/feature-gate-is_sorted.rs:11:32
30    |
31 LL |     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
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0658`.