Skip to content

Bug: Generics error with --hide-marker-traits #894

@Nadrieril

Description

@Nadrieril

Reported by @sonmarcho:

//@ charon-args=--hide-marker-traits
#![feature(const_destruct)]
use std::marker::Destruct;
fn drop<T: Destruct>(_: T) {}

gives

fn drop<T>(@1: T)
{
    let @0: (); // return
    let @1: T; // arg #1

    @0 := ()
    @0 := ()
    drop[missing(@TraitClauseBound(0, 1))] @1
    return
}

Note the missing trait ref, caused by removing the Destruct clause.

Metadata

Metadata

Assignees

Labels

C-bugA bug in charon

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions