diff --git a/tests/ui/delegation/generics/stability-implications-non-local-defid.rs b/tests/ui/delegation/generics/stability-implications-non-local-defid.rs new file mode 100644 index 0000000000000..f8b7874f28068 --- /dev/null +++ b/tests/ui/delegation/generics/stability-implications-non-local-defid.rs @@ -0,0 +1,21 @@ +//@ check-pass + +#![feature(fn_delegation)] +#![allow(incomplete_features)] +#![feature(staged_api)] +#![unstable(feature = "foo", issue = "none")] + +pub mod m { + #[unstable(feature = "foo", issue = "none")] + pub struct W { + pub inner: std::iter::Map, + } + + #[unstable(feature = "foo", issue = "none")] + impl B> Iterator for W { + type Item = B; + reuse Iterator::{next, fold} { self.inner } + } +} + +fn main() {}