1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/unsized-fn-param.rs:11:11
4 LL | foo11("bar", &"baz");
5 | ^^^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `str`
8 = note: required for the cast to the object type `dyn AsRef<Path>`
10 error[E0277]: the size for values of type `str` cannot be known at compilation time
11 --> $DIR/unsized-fn-param.rs:13:19
13 LL | foo12(&"bar", "baz");
14 | ^^^^^ doesn't have a size known at compile-time
16 = help: the trait `Sized` is not implemented for `str`
17 = note: required for the cast to the object type `dyn AsRef<Path>`
19 error[E0277]: the size for values of type `str` cannot be known at compilation time
20 --> $DIR/unsized-fn-param.rs:16:11
22 LL | foo21("bar", &"baz");
23 | ^^^^^ doesn't have a size known at compile-time
25 = help: the trait `Sized` is not implemented for `str`
26 = note: required for the cast to the object type `dyn AsRef<str>`
28 error[E0277]: the size for values of type `str` cannot be known at compilation time
29 --> $DIR/unsized-fn-param.rs:18:19
31 LL | foo22(&"bar", "baz");
32 | ^^^^^ doesn't have a size known at compile-time
34 = help: the trait `Sized` is not implemented for `str`
35 = note: required for the cast to the object type `dyn AsRef<str>`
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0277`.