summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs b/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs
new file mode 100644
index 000000000..f0c5c222e
--- /dev/null
+++ b/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs
@@ -0,0 +1,10 @@
+trait Foo {
+}
+
+#[do_not_recommend]
+//~^ ERROR the `#[do_not_recommend]` attribute is an experimental feature
+impl Foo for i32 {
+}
+
+fn main() {
+}