Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

comparison between borrowed pointers hits ICE #3091

Closed
nikomatsakis opened this Issue · 4 comments

3 participants

Niko Matsakis Tim Chevalier Jesse Ruderman
Niko Matsakis
Owner
fn main() {
    let x = 1;
    let y = 1;
    assert &x == &y;
}

yields "error: internal compiler error: non-scalar type passed to compare_scalar_types"

I imagine this should work the same as @1 == @1

Tim Chevalier

I'll see if this is fixable easily.

Tim Chevalier catamorphism was assigned
Jesse Ruderman

Are you trying to compare the addresses or the ints?

Niko Matsakis
Owner

the ints, although it's a good question. but that's how we behave with @T and ~T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.