diff options
| author | yukang <moorekang@gmail.com> | 2025-06-02 17:40:35 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2025-06-02 17:49:01 +0800 |
| commit | 7167e7ce06437ec093e80cc4ff20bf33dbf1fef5 (patch) | |
| tree | b9cf50a61c76c1bf3f6a7503ca8124bbd8082896 /tests/ui/resolve | |
| parent | 91fad92585b2dafc52a074e502b2a6c1f093ca35 (diff) | |
| download | rust-7167e7ce06437ec093e80cc4ff20bf33dbf1fef5.tar.gz rust-7167e7ce06437ec093e80cc4ff20bf33dbf1fef5.zip | |
Fix false positive lint error from no_implicit_prelude attr
Diffstat (limited to 'tests/ui/resolve')
| -rw-r--r-- | tests/ui/resolve/extern-crate-lint-issue-141785.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/resolve/extern-crate-lint-issue-141785.rs b/tests/ui/resolve/extern-crate-lint-issue-141785.rs new file mode 100644 index 00000000000..8d044d666df --- /dev/null +++ b/tests/ui/resolve/extern-crate-lint-issue-141785.rs @@ -0,0 +1,11 @@ +//@ check-pass +//@ edition:2018 + +#![no_implicit_prelude] +#![warn(unused_extern_crates)] + +extern crate std; +fn main() { + let r = 1u16..10; + std::println!("{:?}", r.is_empty()); +} |
