-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
lazy_type_alias causes lifetime error #114221
Copy link
Copy link
Closed
Labels
A-varianceArea: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)Area: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)C-bugCategory: This is a bug.Category: This is a bug.F-lazy_type_alias`#![feature(lazy_type_alias)]``#![feature(lazy_type_alias)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Description
Metadata
Metadata
Assignees
Labels
A-varianceArea: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)Area: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)C-bugCategory: This is a bug.Category: This is a bug.F-lazy_type_alias`#![feature(lazy_type_alias)]``#![feature(lazy_type_alias)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-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-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
No fields configured for issues without a type.
Projects
StatusShow more project fields
Done
I tried this code:
tests/ui/regions/regions-scope-chain-example.rswithout `-Zcrate-attr=feature(lazy_type_alias)´: no warnings
with
-Zcrate-attr=feature(lazy_type_alias):