Skip to content

Enum Type #2346

Closed
Closed
@kgtkr

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
  }
}

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