mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 00:03:49 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
17 lines
248 B
Rust
17 lines
248 B
Rust
//@ 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<'a>(x: &'a ast<'a>, y: &'a ast<'a>, _z: &ast) -> ast<'a> {
|
|
ast::add(x, y)
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|