rust-clippy/tests/ui/rc_buffer_redefined_string.rs

12 lines
142 B
Rust

#![warn(clippy::rc_buffer)]
use std::rc::Rc;
struct String;
struct S {
// does not trigger lint
good1: Rc<String>,
}
fn main() {}