summaryrefslogtreecommitdiffstats
path: root/tests/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs
blob: b9f1de7ec13a538d625a1902d88e44cf729514a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// known-bug: #89515
//
// The trait solver cannot deal with ambiguous marker trait impls
// if there are lifetimes involved. As we must not special-case any
// regions this does not work, even with 'static
#![feature(marker_trait_attr)]

#[marker]
trait Marker {}

impl Marker for &'static () {}
impl Marker for &'static () {}

fn main() {}