#![warn(clippy::rc_buffer)] #![allow(dead_code, unused_imports)] use std::ffi::OsString; use std::path::PathBuf; use std::sync::{Arc, Mutex}; struct S { // triggers lint bad1: Arc, bad2: Arc, bad3: Arc>, bad4: Arc, // does not trigger lint good1: Arc>, } // triggers lint fn func_bad1(_: Arc) {} fn func_bad2(_: Arc) {} fn func_bad3(_: Arc>) {} fn func_bad4(_: Arc) {} // does not trigger lint fn func_good1(_: Arc>) {} fn main() {}