about summary refs log tree commit diff
path: root/tests/pretty/hir-delegation.rs
blob: 9e351a1e32f3dd427956a37ddc2c59bfe4ff5c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//@ pretty-compare-only
//@ pretty-mode:hir
//@ pp-exact:hir-delegation.pp

#![allow(incomplete_features)]
#![feature(fn_delegation)]

fn b<C>(e: C) {}

trait G {
    reuse b {}
}

mod m {
    pub fn add(a: u32, b: u32) -> u32 { a + b }
}

reuse m::add;

fn main() {
    _ = add(1, 2);
}