Skip to content

Need to add a test for marker traits with 'static #103574

Closed
@jackh726

Description

@jackh726

Not sure if we have a test for the following

#![feature(marker_trait_attr)]
#[marker] trait Marker {}
impl Marker for &'static () {}
impl Marker for &'static () {}

and

```rust
#![feature(marker_trait_attr)]
#[marker] trait Marker {}
impl Marker for &'_ () {}
impl Marker for &'_ () {}

If not, we need to add them, since they would be important for special casing 'static during canonicalization.

Metadata

Metadata

Assignees

Labels

E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.F-marker_trait_attr`#![feature(marker_trait_attr)]`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions