1 #![feature(rustc_attrs)]
3 fn func<#[rustc_synthetic] T>(_: T) {}
8 pub fn func<#[rustc_synthetic] T>(_: T) {}
16 pub fn func<#[rustc_synthetic] T>(_: T) {}
20 func::<u8>(42); //~ ERROR cannot provide explicit type parameters
23 Foo::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
26 Bar::<i8>::func::<u8>(42); //~ ERROR cannot provide explicit type parameters
27 Bar::<i8>::func(42); // Ok