rust/tests/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
149 B
Rust
Raw Normal View History

2022-10-26 21:11:49 -05:00
// check-pass
#![feature(marker_trait_attr)]
#[marker]
trait Marker {}
impl Marker for &'static () {}
impl Marker for &'static () {}
fn main() {}