File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
src/test/ui/type-alias-impl-trait Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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 ( ) { }
You can’t perform that action at this time.
0 commit comments