Skip to content

Commit b4766f8

Browse files
committed
Correct error location indicated by comments
1 parent 54f1124 commit b4766f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/test/ui/feature-gates/feature-gate-is_sorted.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
fn main() {
22
// Assert `Iterator` methods are feature gated
33
assert!([1, 2, 2, 9].iter().is_sorted());
4-
//^ ERROR: use of unstable library feature 'is_sorted'
4+
//~^ ERROR: use of unstable library feature 'is_sorted': new API
55
assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
6-
//^ ERROR: use of unstable library feature 'is_sorted'
6+
//~^ ERROR: use of unstable library feature 'is_sorted': new API
77

88
// Assert `[T]` methods are feature gated
99
assert!([1, 2, 2, 9].is_sorted());
10-
//^ ERROR: use of unstable library feature 'is_sorted'
10+
//~^ ERROR: use of unstable library feature 'is_sorted': new API
1111
assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
12-
//^ ERROR: use of unstable library feature 'is_sorted'
12+
//~^ ERROR: use of unstable library feature 'is_sorted': new API
1313
}

0 commit comments

Comments
 (0)