rust/tests/ui/feature-gates/feature-gate-overlapping_marker_traits.rs
2023-01-11 09:32:08 +00:00

10 lines
151 B
Rust

use std::fmt::{Debug, Display};
trait MyMarker {}
impl<T: Display> MyMarker for T {}
impl<T: Debug> MyMarker for T {}
//~^ ERROR E0119
fn main() {}