rust/tests/pretty/hir-delegation.rs

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

23 lines
288 B
Rust
Raw Permalink Normal View History

//@ 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);
}