fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
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 `std::marker::Sized` is not implemented for `str` 8 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 9 = note: required for the cast to the object type `dyn std::convert::AsRef<std::path::Path>` 10 11error[E0277]: the size for values of type `str` cannot be known at compilation time 12 --> $DIR/unsized-fn-param.rs:13:19 13 | 14LL | foo12(&"bar", "baz"); 15 | ^^^^^ doesn't have a size known at compile-time 16 | 17 = help: the trait `std::marker::Sized` is not implemented for `str` 18 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 19 = note: required for the cast to the object type `dyn std::convert::AsRef<std::path::Path>` 20 21error[E0277]: the size for values of type `str` cannot be known at compilation time 22 --> $DIR/unsized-fn-param.rs:16:11 23 | 24LL | foo21("bar", &"baz"); 25 | ^^^^^ doesn't have a size known at compile-time 26 | 27 = help: the trait `std::marker::Sized` is not implemented for `str` 28 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 29 = note: required for the cast to the object type `dyn std::convert::AsRef<str>` 30 31error[E0277]: the size for values of type `str` cannot be known at compilation time 32 --> $DIR/unsized-fn-param.rs:18:19 33 | 34LL | foo22(&"bar", "baz"); 35 | ^^^^^ doesn't have a size known at compile-time 36 | 37 = help: the trait `std::marker::Sized` is not implemented for `str` 38 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 39 = note: required for the cast to the object type `dyn std::convert::AsRef<str>` 40 41error: aborting due to 4 previous errors 42 43For more information about this error, try `rustc --explain E0277`.