summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/simple-match-generic-tag.rs
blob: 762fd49ad247548e9f424c8437f2dddbaae24225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

enum opt<T> { none, some(T) }

pub fn main() {
    let x = opt::none::<isize>;
    match x {
        opt::none::<isize> => { println!("hello world"); }
        opt::some(_) => { }
    }
}