Skip to content

NLL ICE on *const_ptr() #52416

Closed
Closed
@estebank

Description

src/test/compile-fail/issue-20801.rs ICEs using NLL:

error: internal compiler error: Accessing `(*_8)` with the kind `Write(Move)` shouldn't be possible
  --> $DIR/issue-20801.rs:45:22
   |
LL |     let d = unsafe { *const_ptr() };
   |                      ^^^^^^^^^^^^

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions