Skip to content

E0396 needs to be updated to new format #35694

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/E0396.rs

E0396 needs a span_label, updating it from:

error[E0396]: raw pointers cannot be dereferenced in constants
  --> src/test/compile-fail/E0396.rs:13:28
   |
13 | const VALUE: u8 = unsafe { *REG_ADDR }; //~ ERROR E0396
   |                            ^^^^^^^^^

To:

error[E0396]: raw pointers cannot be dereferenced in constants
  --> src/test/compile-fail/E0396.rs:13:28
   |
13 | const VALUE: u8 = unsafe { *REG_ADDR }; //~ ERROR E0396
   |                            ^^^^^^^^^ dereference of raw pointer in constant

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions