File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
tests/ui/const-generics/issues Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 11error[E0433]: failed to resolve: use of undeclared type `IntoIter`
2- --> $DIR/issue-82956.rs:25 :24
2+ --> $DIR/issue-82956.rs:28 :24
33 |
44LL | let mut iter = IntoIter::new(self);
55 | ^^^^^^^^ use of undeclared type `IntoIter`
Original file line number Diff line number Diff line change 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
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)
Original file line number Diff line number Diff line change 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`.
You can’t perform that action at this time.
0 commit comments