mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
warning
This commit is contained in:
@@ -35,6 +35,16 @@
|
||||
/// println!("{}", elem);
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// ### Known Problems
|
||||
/// When doing things such as:
|
||||
/// ```ignore
|
||||
/// let v = vec![0, 1, 2];
|
||||
/// v.iter().for_each(|elem| unsafe {
|
||||
/// libc::printf(c"%d\n".as_ptr(), elem);
|
||||
/// });
|
||||
/// ```
|
||||
/// This lint will not trigger.
|
||||
#[clippy::version = "1.53.0"]
|
||||
pub NEEDLESS_FOR_EACH,
|
||||
pedantic,
|
||||
|
||||
Reference in New Issue
Block a user