mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
15 lines
343 B
Rust
15 lines
343 B
Rust
//@ 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() {}
|