File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- use std:: os:: raw:: c_char;
21extern "C" {
3- pub static mut symbol: [ c_char ] ;
2+ pub static mut symbol: [ i8 ] ;
43 //~^ ERROR the size for values of type `[i8]` cannot be known at compilation time
54}
65
Original file line number Diff line number Diff line change 11error[E0277]: the size for values of type `[i8]` cannot be known at compilation time
2- --> $DIR/issue-54410.rs:3 :28
2+ --> $DIR/issue-54410.rs:2 :28
33 |
4- LL | pub static mut symbol: [c_char ];
5- | ^^^^^^^^ doesn't have a size known at compile-time
4+ LL | pub static mut symbol: [i8 ];
5+ | ^^^^ doesn't have a size known at compile-time
66 |
77 = help: the trait `std::marker::Sized` is not implemented for `[i8]`
88 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
You can’t perform that action at this time.
0 commit comments