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 generic arguments
23 Foo::func::<u8>(42); //~ ERROR cannot provide explicit generic arguments
26 Bar::<i8>::func::<u8>(42); //~ ERROR cannot provide explicit generic arguments
27 Bar::<i8>::func(42); // Ok