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

Commit b2c793f

Browse files
committed
ices/58987-1.rs: fixed with errors
=== stdout === === stderr === error[E0277]: the size for values of type `T` cannot be known at compilation time --> /home/runner/work/glacier/glacier/ices/58987-1.rs:3:19 | 3 | fn foo<T: ?Sized>(t: T) { | - ^ doesn't have a size known at compile-time | | | this type parameter needs to be `std::marker::Sized` | = help: the trait `std::marker::Sized` is not implemented for `T` = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> = note: all local variables must have a statically known size = help: unsized locals are gated as an unstable feature error: constant expression depends on a generic parameter --> /home/runner/work/glacier/glacier/ices/58987-1.rs:4:18 | 4 | let _ = [(); 0 - !(mem::size_of::<&T>() == mem::size_of::<[usize; 2]>()) as usize]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this may fail depending on what value the parameter takes error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0277`. ==============
1 parent dbcb062 commit b2c793f

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed

ices/58987-1.rs fixed/58987-1.rs

File renamed without changes.

0 commit comments

Comments
 (0)