Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
polymorphization
/
promoted-function-1.rs
blob: 2cd02673442fed83abbb2a0da807235005f2236c [
file
]
// 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
(&());
}