summaryrefslogtreecommitdiffstats
path: root/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs')
-rw-r--r--src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs b/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs
new file mode 100644
index 000000000..eabce1aef
--- /dev/null
+++ b/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs
@@ -0,0 +1,9 @@
+#![feature(marker_trait_attr)]
+
+#[marker]
+trait Marker {}
+
+impl Marker for &'_ () {} //~ ERROR type annotations needed
+impl Marker for &'_ () {} //~ ERROR type annotations needed
+
+fn main() {}