blob: 4d3b9e1777c1ea3c2ffb077d6bfce9243f4ee7c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
struct Foo<T>(T, bool);
impl<T> Foo<T> {
fn test() -> i32 {
123
}
}
fn main() {
let a = Foo::test();
// { dg-error "type annotations needed" "" { target *-*-* } .-1 }
}
|