blob: 10b5880d5bcb14cf8e2524ce3eff47b1683b62f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#[lang = "sized"]
pub trait Sized {}
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 }
}
|