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;
2
1
extern "C" {
3
- pub static mut symbol: [ c_char ] ;
2
+ pub static mut symbol: [ i8 ] ;
4
3
//~^ ERROR the size for values of type `[i8]` cannot be known at compilation time
5
4
}
6
5
Original file line number Diff line number Diff line change 1
1
error[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
3
3
|
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
6
6
|
7
7
= help: the trait `std::marker::Sized` is not implemented for `[i8]`
8
8
= 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