blob: 81bd661e447171511a451ebaf7c226c7974a27d2 [file]
#![feature(no_core)]
#![no_core]
#![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
}