]> git.proxmox.com Git - rustc.git/blob - src/test/ui/polymorphization/promoted-function-1.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / polymorphization / promoted-function-1.rs
1 // build-fail
2 // compile-flags: -Zpolymorphize=on
3 #![crate_type = "lib"]
4 #![feature(rustc_attrs)]
5
6 fn foo<'a>(_: &'a ()) {}
7
8 #[rustc_polymorphize_error]
9 pub fn test<T>() {
10 //~^ ERROR item has unused generic parameters
11 foo(&());
12 }