rust/tests/ui/feature-gates/feature-gate-marker_trait_attr.rs

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

10 lines
226 B
Rust
Raw Normal View History

use std::fmt::{Debug, Display};
#[marker] trait ExplicitMarker {}
//~^ ERROR the `#[marker]` attribute is an experimental feature
impl<T: Display> ExplicitMarker for T {}
impl<T: Debug> ExplicitMarker for T {}
fn main() {}