about summary refs log tree commit diff
path: root/tests/ui/regions/regions-creating-enums2.rs
blob: de6e51b1fbd64d92814088c0c0ea1fb5f13f1442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]


enum ast<'a> {
    num(usize),
    add(&'a ast<'a>, &'a ast<'a>)
}

fn mk_add_ok<'r>(x: &'r ast<'r>, y: &'r ast<'r>) -> ast<'r> {
    ast::add(x, y)
}

pub fn main() {
}