1 2 3 4 5 6
fn main() { bar(); // { dg-error "type annotations needed" "" { target *-*-* } .-1 } } fn bar<T>() {}