rust/tests/ui/rc_buffer_redefined_string.rs

13 lines
142 B
Rust
Raw Normal View History

2020-09-15 22:10:50 -05:00
#![warn(clippy::rc_buffer)]
use std::rc::Rc;
struct String;
struct S {
// does not trigger lint
good1: Rc<String>,
}
fn main() {}