fn is_sized() { } fn not_sized() { } struct Foo { data: T } fn foo1() { not_sized::>() } // Hunky dory. fn foo2() { not_sized::>() } //~^ ERROR the size for values of type // // Not OK: `T` is not sized. struct Bar { data: T } fn bar1() { not_sized::>() } fn bar2() { is_sized::>() } //~^ ERROR the size for values of type // // Not OK: `Bar` is not sized, but it should be. fn main() { }