Skip to content

Commit d3244e2

Browse files
authored
Rollup merge of #86859 - JohnTitor:test-69323, r=jackh726
Add a regression test for issue-69323 Closes #69323 r? `@jackh726`
2 parents 28dba82 + 2512e96 commit d3244e2

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/issue-69323.rs:5:27
3+
|
4+
LL | #![cfg_attr(full, feature(type_alias_impl_trait))]
5+
| ^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
9+
10+
warning: 1 warning emitted
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// check-pass
2+
3+
// revisions: min full
4+
#![feature(min_type_alias_impl_trait)]
5+
#![cfg_attr(full, feature(type_alias_impl_trait))]
6+
//[full]~^ WARN incomplete
7+
8+
use std::iter::{once, Chain};
9+
10+
fn test1<A: Iterator<Item = &'static str>>(x: A) -> Chain<A, impl Iterator<Item = &'static str>> {
11+
x.chain(once(","))
12+
}
13+
14+
type I<A> = Chain<A, impl Iterator<Item = &'static str>>;
15+
fn test2<A: Iterator<Item = &'static str>>(x: A) -> I<A> {
16+
x.chain(once(","))
17+
}
18+
19+
fn main() {}

0 commit comments

Comments
 (0)