Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
ices/68538.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/68538.rs:1:12
  |
1 | #![feature(unsized_locals)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #48055 <rust-lang/rust#48055> for more information

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
 --> /home/runner/work/glacier/glacier/ices/68538.rs:4:27
  |
4 | pub fn take_unsized_slice(s: [u8]) {
  |                           ^ doesn't have a size known at compile-time
  |
  = help: the trait `Sized` is not implemented for `[u8]`
  = help: unsized fn params are gated as an unstable feature
help: function arguments must have a statically known size, borrowed types always have a known size
  |
4 | pub fn take_unsized_slice(&s: [u8]) {
  |                           ^

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0277`.
==============
  • Loading branch information
rustbot committed Oct 29, 2020
1 parent fdaae30 commit 8fe0552
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 8fe0552

Please sign in to comment.