Skip to content

Associated type binding completions show up when they are not allowed #12165

Closed
@jonas-schievink

Description

@jonas-schievink
struct S;
trait Tr<T> {
    type Ty;
}

impl Tr<$0

This suggests using Ty = to specify the associated type, but that's not allowed when implementing a trait, only when using dyn Trait or impl Trait as a type, and when using a trait in a where-clause (perhaps whether it's allowed should be stored in the context).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions