fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `str` cannot be known at compilation time 2 --> $DIR/unsized-fn-param.rs:11:11 3 | 4LL | foo11("bar", &"baz"); 5 | ^^^^^ doesn't have a size known at compile-time 6 | 7 = help: the trait `Sized` is not implemented for `str` 8 = note: required for the cast from `&'static str` to `&dyn AsRef<Path>` 9help: consider borrowing the value, since `&&'static str` can be coerced into `&dyn AsRef<Path>` 10 | 11LL | foo11(&"bar", &"baz"); 12 | + 13 14error[E0277]: the size for values of type `str` cannot be known at compilation time 15 --> $DIR/unsized-fn-param.rs:13:19 16 | 17LL | foo12(&"bar", "baz"); 18 | ^^^^^ doesn't have a size known at compile-time 19 | 20 = help: the trait `Sized` is not implemented for `str` 21 = note: required for the cast from `&'static str` to `&dyn AsRef<Path>` 22help: consider borrowing the value, since `&&'static str` can be coerced into `&dyn AsRef<Path>` 23 | 24LL | foo12(&"bar", &"baz"); 25 | + 26 27error[E0277]: the size for values of type `str` cannot be known at compilation time 28 --> $DIR/unsized-fn-param.rs:16:11 29 | 30LL | foo21("bar", &"baz"); 31 | ^^^^^ doesn't have a size known at compile-time 32 | 33 = help: the trait `Sized` is not implemented for `str` 34 = note: required for the cast from `&'static str` to `&dyn AsRef<str>` 35help: consider borrowing the value, since `&&'static str` can be coerced into `&dyn AsRef<str>` 36 | 37LL | foo21(&"bar", &"baz"); 38 | + 39 40error[E0277]: the size for values of type `str` cannot be known at compilation time 41 --> $DIR/unsized-fn-param.rs:18:19 42 | 43LL | foo22(&"bar", "baz"); 44 | ^^^^^ doesn't have a size known at compile-time 45 | 46 = help: the trait `Sized` is not implemented for `str` 47 = note: required for the cast from `&'static str` to `&dyn AsRef<str>` 48help: consider borrowing the value, since `&&'static str` can be coerced into `&dyn AsRef<str>` 49 | 50LL | foo22(&"bar", &"baz"); 51 | + 52 53error: aborting due to 4 previous errors 54 55For more information about this error, try `rustc --explain E0277`.