2 // Check tautalogically false `Sized` bounds
3 #![feature(trivial_bounds)]
14 struct S(str, str) where str: Sized;
15 //~^ WARNING Sized does not depend on any type or lifetime
17 fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
18 //~^ WARNING Sized does not depend on any type or lifetime
19 let x: T<dyn A> = *(Box::new(T { x: 1 }) as Box<T<dyn A>>);
22 fn return_str() -> str where str: Sized {
23 //~^ WARNING Sized does not depend on any type or lifetime
24 *"Sized".to_string().into_boxed_str()