blob: ec398e9bc960a661ede259a0657eb8fccbde2a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct GenericStruct<T>(T, usize);
pub fn test() -> GenericStruct<_> {
// { dg-error "the type placeholder ._. is not allowed within types on item signatures .E0121." "" { target *-*-* } .-1 }
GenericStruct(1, 2)
}
fn square(num: i32) -> _ {
// { dg-error "the type placeholder ._. is not allowed within types on item signatures .E0121." "" { target *-*-* } .-1 }
num * num
}
|