summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/dyn-keyword.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/dyn-keyword.fixed')
-rw-r--r--tests/ui/rust-2018/dyn-keyword.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/dyn-keyword.fixed b/tests/ui/rust-2018/dyn-keyword.fixed
new file mode 100644
index 000000000..044824cbb
--- /dev/null
+++ b/tests/ui/rust-2018/dyn-keyword.fixed
@@ -0,0 +1,10 @@
+// edition:2015
+// run-rustfix
+
+#![allow(unused_variables)]
+#![deny(keyword_idents)]
+
+fn main() {
+ let r#dyn = (); //~ ERROR dyn
+ //~^ WARN this is accepted in the current edition
+}