// Make sure extern types are !Sized. #![feature(extern_types)] extern "C" { type A; } struct Foo { x: u8, tail: A, } struct Bar { x: u8, tail: T, } fn assert_sized() {} fn main() { assert_sized::(); //~^ ERROR the size for values of type assert_sized::(); //~^ ERROR the size for values of type assert_sized::>(); //~^ ERROR the size for values of type assert_sized::>>(); //~^ ERROR the size for values of type }