Skip to content

Commit 0635e3e

Browse files
committed
test: Make one multi suggestion test unicode
1 parent ab68b0f commit 0635e3e

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

tests/ui/const-generics/issues/issue-82956.stderr renamed to tests/ui/const-generics/issues/issue-82956.ascii.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0433]: failed to resolve: use of undeclared type `IntoIter`
2-
--> $DIR/issue-82956.rs:25:24
2+
--> $DIR/issue-82956.rs:28:24
33
|
44
LL | let mut iter = IntoIter::new(self);
55
| ^^^^^^^^ use of undeclared type `IntoIter`

tests/ui/const-generics/issues/issue-82956.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: ascii unicode
2+
//@[unicode] compile-flags: -Zunstable-options --error-format=human-unicode
3+
14
#![feature(generic_const_exprs)]
25
#![allow(incomplete_features)]
36

@@ -23,7 +26,7 @@ where
2326

2427
fn pop(self) -> (Self::Newlen, Self::Output) {
2528
let mut iter = IntoIter::new(self);
26-
//~^ ERROR: failed to resolve: use of undeclared type `IntoIter`
29+
//[ascii]~^ ERROR: failed to resolve: use of undeclared type `IntoIter`
2730
let end = iter.next_back().unwrap();
2831
let new = [(); N - 1].map(move |()| iter.next().unwrap());
2932
(new, end)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
error[E0433]: failed to resolve: use of undeclared type `IntoIter`
2+
╭▸ $DIR/issue-82956.rs:28:24
3+
4+
LL │ let mut iter = IntoIter::new(self);
5+
│ ━━━━━━━━ use of undeclared type `IntoIter`
6+
╰╴
7+
help: consider importing one of these structs
8+
╭╴
9+
LL + use std::array::IntoIter;
10+
├╴
11+
LL + use std::collections::binary_heap::IntoIter;
12+
├╴
13+
LL + use std::collections::btree_map::IntoIter;
14+
├╴
15+
LL + use std::collections::btree_set::IntoIter;
16+
╰╴
17+
and 9 other candidates
18+
19+
error: aborting due to 1 previous error
20+
21+
For more information about this error, try `rustc --explain E0433`.

0 commit comments

Comments
 (0)