Fix false positive lint error from no_implicit_prelude attr

This commit is contained in:
yukang 2025-06-02 17:40:35 +08:00
parent 91fad92585
commit 7167e7ce06
2 changed files with 21 additions and 0 deletions

View file

@ -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());
}