This repository was archived by the owner on May 23, 2024. It is now read-only.
Commit 11d7444
committed
ices/108329.rs: fixed with errors
=== stdout ===
=== stderr ===
error[E0308]: mismatched types
--> /home/runner/work/glacier/glacier/ices/108329.rs:81:29
|
81 | buf.copy_from_slice(self.buffer[..]);
| --------------- ^^^^^^^^^^^^^^^
| | |
| | expected `&[_]`, found `[T]`
| | help: consider borrowing here: `&self.buffer[..]`
| arguments to this method are incorrect
| here the type of `buf` is inferred to be `[_]`
|
= note: expected reference `&[_]`
found slice `[T]`
note: method defined here
--> /rustc/44cfafe2fafe816395d3acc434663a45d5178c41/library/core/src/slice/mod.rs:3325:12
error[E0277]: the trait bound `T: Copy` is not satisfied
--> /home/runner/work/glacier/glacier/ices/108329.rs:81:13
|
81 | buf.copy_from_slice(self.buffer[..]);
| ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
|
note: required by a bound in `core::slice::<impl [T]>::copy_from_slice`
--> /rustc/44cfafe2fafe816395d3acc434663a45d5178c41/library/core/src/slice/mod.rs:3325:5
help: consider further restricting this bound
|
74 | T: Clone + std::marker::Copy,
| +++++++++++++++++++
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
==============1 parent 6d389a1 commit 11d7444
1 file changed
+0
-0
lines changedFile renamed without changes.
0 commit comments