2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-09 01:37:16 +00:00
rust-clippy/tests/ui/rc_buffer_redefined_string.rs
2020-09-15 21:11:28 -06:00

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() {}