Skip to content

Enum Type #2346

Description

@kgtkr

example

let x:Option::Some<i32>=Some(1);
pub struct A<T:Option<i32>>{
  x:T
}

impl A<Some<i32>>{
  pub fn get_x(&self)->i32{
    let Some<x>=self.x;
    x
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions