rust/tests/ui/regions/regions-creating-enums2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
269 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
// pretty-expanded FIXME #23616
enum ast<'a> {
num(usize),
add(&'a ast<'a>, &'a ast<'a>)
2012-04-21 17:04:58 +00:00
}
fn mk_add_ok<'r>(x: &'r ast<'r>, y: &'r ast<'r>) -> ast<'r> {
ast::add(x, y)
2012-04-21 17:04:58 +00:00
}
pub fn main() {
}