summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/async-ident-allowed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2018/async-ident-allowed.rs')
-rw-r--r--tests/ui/rust-2018/async-ident-allowed.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/rust-2018/async-ident-allowed.rs b/tests/ui/rust-2018/async-ident-allowed.rs
new file mode 100644
index 000000000..8efcfbb70
--- /dev/null
+++ b/tests/ui/rust-2018/async-ident-allowed.rs
@@ -0,0 +1,11 @@
+// edition:2015
+
+#![deny(rust_2018_compatibility)]
+
+// Don't make a suggestion for a raw identifier replacement unless raw
+// identifiers are enabled.
+
+fn main() {
+ let async = 3; //~ ERROR: is a keyword
+ //~^ WARN this is accepted in the current edition
+}