3 #![allow(dead_code, unused_variables)]
6 //~^ ERROR the size for values of type `str` cannot be known at compilation time
7 //~| HELP the trait `Sized` is not implemented for `str`
8 //~| HELP unsized fn params are gated as an unstable feature
9 //~| HELP function arguments must have a statically known size, borrowed types always have a known size
11 fn foo2(_bar: &str) {}
12 //~^ ERROR the size for values of type `str` cannot be known at compilation time
13 //~| HELP the trait `Sized` is not implemented for `str`
14 //~| HELP unsized fn params are gated as an unstable feature
15 //~| HELP function arguments must have a statically known size, borrowed types always have a known size
18 //~^ ERROR the size for values of type `str` cannot be known at compilation time
19 //~| HELP the trait `Sized` is not implemented for `str`
20 //~| HELP unsized fn params are gated as an unstable feature
21 //~| HELP function arguments must have a statically known size, borrowed types always have a known size