Skip to content

Nullary tags can be passed by mutable alias #747

@msullivan

Description

@msullivan
use std;
import std::option::*;

fn mutator(&mutable t[@int] x) {
    x = some(@0);
}

fn main() {
    mutator(none);
}

passes the alias checker, but shouldn't. When the program is run, it leaks memory.

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