mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 19:53:38 -04:00
13 lines
238 B
Rust
13 lines
238 B
Rust
// 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(&());
|
|
}
|