Skip to content

Support non_lifetime_binders feature #10150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
neonaot opened this issue Feb 20, 2023 · 0 comments
Open

Support non_lifetime_binders feature #10150

neonaot opened this issue Feb 20, 2023 · 0 comments
Labels
feature subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. subsystem::parsing

Comments

@neonaot
Copy link
Member

neonaot commented Feb 20, 2023

Environment

  • IntelliJ Rust plugin version: 0.4.188.5180-231-nightly
  • Rust toolchain version: 1.69.0-nightly (7aa413d59 2023-02-19) x86_64-apple-darwin
  • IDE name and version: IntelliJ IDEA 2023.1 EAP Ultimate Edition (IU-231.6471.9)
  • Operating system: macOS 12.5.1
  • Macro expansion: enabled
  • Additional experimental features: org.rust.cargo.emulate.terminal

Problem description

It is a new (and currently incompleted) compiler feature, see rust-lang/rust#108185
изображение

Steps to reproduce

#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete

trait Trait {}

impl<T: ?Sized> Trait for T {}

fn foo()
    where
for < T> T: Trait,
{}

fn main() {
    foo();
}
@neonaot neonaot added subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. feature subsystem::parsing labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature subsystem::code insight General label for issues related to code understanding: highlighting, completion, annotation, etc. subsystem::parsing
Projects
None yet
Development

No branches or pull requests

1 participant