Skip to content

Codegen issue: box mut dyn trait unhandled codegen_pointer_cast #34

@adpaco-aws

Description

@adpaco-aws
use std::io::{sink, Write};

fn main() {
    let mut log : Box<dyn Write + Send> = Box::new(sink());
    let dest : Box<dyn Write + Send> = Box::new(log.as_mut());
}

Fails with an unhandled pointer cast exception.

Metadata

Metadata

Assignees

Labels

[C] BugThis is a bug. Something isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions