blob: 2c99fc8f2485387fe571e8724a62a09032b4e9b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#[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
}
|