Correct error location indicated by comments
This commit is contained in:
parent
54f11240b7
commit
b4766f8077
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
// Assert `Iterator` methods are feature gated
|
// Assert `Iterator` methods are feature gated
|
||||||
assert!([1, 2, 2, 9].iter().is_sorted());
|
assert!([1, 2, 2, 9].iter().is_sorted());
|
||||||
//^ ERROR: use of unstable library feature 'is_sorted'
|
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||||
assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
|
assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
|
||||||
//^ ERROR: use of unstable library feature 'is_sorted'
|
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||||
|
|
||||||
// Assert `[T]` methods are feature gated
|
// Assert `[T]` methods are feature gated
|
||||||
assert!([1, 2, 2, 9].is_sorted());
|
assert!([1, 2, 2, 9].is_sorted());
|
||||||
//^ ERROR: use of unstable library feature 'is_sorted'
|
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||||
assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
|
assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
|
||||||
//^ ERROR: use of unstable library feature 'is_sorted'
|
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue