Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Oct 11, 2023

Supported since rust-lang/rust#69194 (Rust 1.43).

Required because cortex-m-rt is stuck on an old version of syn.

    error: free static item without body
      --> tests/cortex/src/main.rs:36:5
       |
    36 |     static EMPTY: [i32];
       |     ^^^^^^^^^^^^^^^^^^^-
       |                        |
       |                        help: provide a definition for the static: `= <expr>;`

    error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
      --> tests/cortex/src/main.rs:36:19
       |
    36 |     static EMPTY: [i32];
       |                   ^^^^^ doesn't have a size known at compile-time
       |
       = help: the trait `Sized` is not implemented for `[i32]`
@dtolnay dtolnay merged commit 8fd4caf into master Oct 11, 2023
@dtolnay dtolnay deleted the noinit branch October 11, 2023 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants