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

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

18 lines
279 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
}
2013-08-17 15:37:42 +00:00
fn mk_add_ok<'a>(x: &'a ast<'a>, y: &'a ast<'a>, _z: &ast) -> ast<'a> {
ast::add(x, y)
2012-04-21 17:04:58 +00:00
}
pub fn main() {
}