-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-lazy_type_alias`#![feature(lazy_type_alias)]``#![feature(lazy_type_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-incomplete-featuresThis issue requires the use of incomplete features.This issue requires the use of incomplete features.
Description
Uplifted from #112792 (comment).
#![feature(lazy_type_alias)]
#![allow(incomplete_features)]
type Faa<A> = Foo<A>;
struct Foo<A>(A);
impl<A> Faa<A> {}
error[E0207]: the type parameter `A` is not constrained by the impl trait, self type, or predicates
--> src/lib.rs:11:6
|
7 | impl<A> Faa<A> {}
| ^ unconstrained type parameter
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-lazy_type_alias`#![feature(lazy_type_alias)]``#![feature(lazy_type_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-incomplete-featuresThis issue requires the use of incomplete features.This issue requires the use of incomplete features.
Type
Projects
Status
Done