diff options
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-marker_trait_attr.rs')
-rw-r--r-- | tests/ui/feature-gates/feature-gate-marker_trait_attr.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-marker_trait_attr.rs b/tests/ui/feature-gates/feature-gate-marker_trait_attr.rs new file mode 100644 index 000000000..5050c4792 --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-marker_trait_attr.rs @@ -0,0 +1,9 @@ +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() {} |