Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/rust-2018/async-ident-allowed.rs

12 lines
263 B
Rust
Raw Normal View History

tests: prefer edition: directives to compile-flags:--edition.
2018-08-16 10:36:11 +03:00
// edition:2015
Tweak the raw_identifiers lints in 2018 * Enable the `raw_identifiers` feature automatically in the 2018 preview * Only emit lint warnings if the `raw_identifiers` feature is activated cc rust-lang/cargo#5783
2018-07-25 17:26:58 -07:00
#![deny(rust_2018_compatibility)]
Fix typos found by codespell.
2018-08-19 15:30:23 +02:00
// Don't make a suggestion for a raw identifier replacement unless raw
Tweak the raw_identifiers lints in 2018 * Enable the `raw_identifiers` feature automatically in the 2018 preview * Only emit lint warnings if the `raw_identifiers` feature is activated cc rust-lang/cargo#5783
2018-07-25 17:26:58 -07:00
// identifiers are enabled.
fn main() {
let async = 3; //~ ERROR: is a keyword
Address PR feedback
2021-06-16 14:27:44 +02:00
//~^ WARN this is accepted in the current edition
Tweak the raw_identifiers lints in 2018 * Enable the `raw_identifiers` feature automatically in the 2018 preview * Only emit lint warnings if the `raw_identifiers` feature is activated cc rust-lang/cargo#5783
2018-07-25 17:26:58 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2541ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API