Skip to content

E0395 needs to be updated to new format #35693

Description

@sophiajt

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

E0395 needs a span_label, updating it from:

error[E0395]: raw pointers cannot be compared in statics
  --> src/test/compile-fail/E0395.rs:14:22
   |
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To:

error[E0395]: raw pointers cannot be compared in statics
  --> src/test/compile-fail/E0395.rs:14:22
   |
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comparing raw pointers in static

Activity

  1. clementmiao commented on Aug 15, 2016

    @clementmiao
    Contributor

    I can take this

  2. added a commit that references this issue on Aug 18, 2016
    9163713
  3. added 4 commits that reference this issue on Aug 19, 2016
    e38299d
    d9e0472
    bf934f9
    7c843c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions