Skip to content

is_null method no longer works because of unconstrained types #2333

Closed
@brson

Description

@brson

Can't determine a type for p.is_null()

fn main() {
  let p: *int = ptr::null();
  assert p.is_null();
}

Metadata

Metadata

Assignees

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