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/issue-14366.rs:2:14 3 | 4LL | let _x = "test" as &dyn (::std::any::Any); 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 Any + 'static)` 9help: consider borrowing the value, since `&&'static str` can be coerced into `&(dyn Any + 'static)` 10 | 11LL | let _x = &"test" as &dyn (::std::any::Any); 12 | + 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0277`.