summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rust-2018/async-ident-allowed.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/rust-2018/async-ident-allowed.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/rust-2018/async-ident-allowed.rs b/src/test/ui/rust-2018/async-ident-allowed.rs
new file mode 100644
index 000000000..8efcfbb70
--- /dev/null
+++ b/src/test/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
+}