blob: c91292d04ccb0dc8922693a985a45894b8172246 [file] [log] [blame]
#![feature(no_core)]
#![no_core]
fn test(a: i32) -> i32 {
a + 1
}
fn main() {
let a: fn(_) -> _ = test;
let b = a(1);
// { dg-warning "unused name" "" { target *-*-* } .-1 }
}