Stabilize GATs
This commit is contained in:
parent
ddda7bbe5d
commit
748b031056
@ -1,6 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
#![allow(incomplete_features)]
|
|
||||||
|
|
||||||
trait Trait<T> {
|
trait Trait<T> {
|
||||||
type Type<'a> where T: 'a;
|
type Type<'a> where T: 'a;
|
||||||
fn foo(x: &T) -> Self::Type<'_>;
|
fn foo(x: &T) -> Self::Type<'_>;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
#![feature(min_type_alias_impl_trait)]
|
#![feature(min_type_alias_impl_trait)]
|
||||||
|
|
||||||
impl SomeTrait for SomeType {
|
impl SomeTrait for SomeType {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
|
|
||||||
impl SomeStruct {
|
impl SomeStruct {
|
||||||
fn process<T>(v: T) -> <Self as GAT>::R<T>
|
fn process<T>(v: T) -> <Self as GAT>::R<T>
|
||||||
where Self: GAT<R<T> = T>
|
where Self: GAT<R<T> = T>
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
#![allow(incomplete_features)]
|
|
||||||
|
|
||||||
trait Trait<T> {
|
trait Trait<T> {
|
||||||
type Type<'a>
|
type Type<'a>
|
||||||
where
|
where
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
#![feature(min_type_alias_impl_trait)]
|
#![feature(min_type_alias_impl_trait)]
|
||||||
|
|
||||||
impl SomeTrait for SomeType {
|
impl SomeTrait for SomeType {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![feature(generic_associated_types)]
|
|
||||||
|
|
||||||
impl SomeStruct {
|
impl SomeStruct {
|
||||||
fn process<T>(v: T) -> <Self as GAT>::R<T>
|
fn process<T>(v: T) -> <Self as GAT>::R<T>
|
||||||
where
|
where
|
||||||
|
Loading…
Reference in New Issue
Block a user