blob: 2cd02673442fed83abbb2a0da807235005f2236c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// build-fail
// compile-flags: -Zpolymorphize=on
#![crate_type = "lib"]
#![feature(rustc_attrs)]
fn foo<'a>(_: &'a ()) {}
#[rustc_polymorphize_error]
pub fn test<T>() {
//~^ ERROR item has unused generic parameters
foo(&());
}
|