mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
f6767f7a68
``` error[E0277]: the size for values of type `str` cannot be known at compilation time --> $DIR/unsized-str-in-return-expr-arg-and-local.rs:15:9 | LL | let x = *""; | ^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `str` = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature help: references are always `Sized`, even if they point to unsized data; consider not dereferencing the expression | LL - let x = *""; LL + let x = ""; | ``` |
||
---|---|---|
.. | ||
coinductive-1-gat.rs | ||
coinductive-1.rs | ||
coinductive-2.rs | ||
coinductive-2.stderr | ||
ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.rs | ||
ensure-overriding-bindings-in-pattern-with-ty-err-doesnt-ice.stderr | ||
expr-type-error-plus-sized-obligation.rs | ||
expr-type-error-plus-sized-obligation.stderr | ||
recursive-type-binding.rs | ||
recursive-type-binding.stderr | ||
recursive-type-coercion-from-never.rs | ||
recursive-type-coercion-from-never.stderr | ||
recursive-type-pass.rs | ||
stack-overflow-trait-infer-98842.32bit.stderr | ||
stack-overflow-trait-infer-98842.64bit.stderr | ||
stack-overflow-trait-infer-98842.rs | ||
unsized-binding.rs | ||
unsized-binding.stderr | ||
unsized-str-in-return-expr-arg-and-local.rs | ||
unsized-str-in-return-expr-arg-and-local.stderr |