Skip to content

Commit 18ebaa9

Browse files
committed
add a regression test for issue 153599
1 parent 3bc6ea5 commit 18ebaa9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//@ check-pass
2+
3+
#![feature(fn_delegation)]
4+
#![allow(incomplete_features)]
5+
#![feature(staged_api)]
6+
#![unstable(feature = "foo", issue = "none")]
7+
8+
pub mod m {
9+
#[unstable(feature = "foo", issue = "none")]
10+
pub struct W<I, F> {
11+
pub inner: std::iter::Map<I, F>,
12+
}
13+
14+
#[unstable(feature = "foo", issue = "none")]
15+
impl<B, I: Iterator, F: FnMut(I::Item) -> B> Iterator for W<I, F> {
16+
type Item = B;
17+
reuse Iterator::{next, fold} { self.inner }
18+
}
19+
}
20+
21+
fn main() {}

0 commit comments

Comments
 (0)