mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +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 = ""; | ``` |
||
---|---|---|
.. | ||
dst-bad-assign-2.rs | ||
dst-bad-assign-2.stderr | ||
dst-bad-assign-3.rs | ||
dst-bad-assign-3.stderr | ||
dst-bad-assign.rs | ||
dst-bad-assign.stderr | ||
dst-bad-coerce1.rs | ||
dst-bad-coerce1.stderr | ||
dst-bad-coerce2.rs | ||
dst-bad-coerce2.stderr | ||
dst-bad-coerce3.rs | ||
dst-bad-coerce3.stderr | ||
dst-bad-coerce4.rs | ||
dst-bad-coerce4.stderr | ||
dst-bad-coercions.rs | ||
dst-bad-coercions.stderr | ||
dst-bad-deep-2.rs | ||
dst-bad-deep-2.stderr | ||
dst-bad-deep.rs | ||
dst-bad-deep.stderr | ||
dst-index.rs | ||
dst-index.stderr | ||
dst-object-from-unsized-type.rs | ||
dst-object-from-unsized-type.stderr | ||
dst-rvalue.rs | ||
dst-rvalue.stderr | ||
dst-sized-trait-param.rs | ||
dst-sized-trait-param.stderr | ||
issue-90528-unsizing-not-suggestion-110063.rs | ||
issue-90528-unsizing-not-suggestion-110063.stderr | ||
issue-90528-unsizing-suggestion-1.rs | ||
issue-90528-unsizing-suggestion-1.stderr | ||
issue-90528-unsizing-suggestion-2.rs | ||
issue-90528-unsizing-suggestion-2.stderr | ||
issue-90528-unsizing-suggestion-3.rs | ||
issue-90528-unsizing-suggestion-3.stderr | ||
issue-90528-unsizing-suggestion-4.rs | ||
issue-90528-unsizing-suggestion-4.stderr | ||
issue-113447.rs | ||
issue-113447.stderr |