//@ run-pass // Check tautalogically false `Sized` bounds #![feature(trivial_bounds)] #![allow(unused)] trait A {} impl A for i32 {} struct T { x: X, } struct S(str, str) where str: Sized; //~^ WARNING Sized does not depend on any type or lifetime fn unsized_local() where for<'a> T: Sized { //~^ WARNING Sized does not depend on any type or lifetime let x: T = *(Box::new(T { x: 1 }) as Box>); } fn return_str() -> str where str: Sized { //~^ WARNING Sized does not depend on any type or lifetime *"Sized".to_string().into_boxed_str() } fn main() {}