]> git.lizzy.rs Git - rust.git/blob - tests/ui/rc_buffer_redefined_string.rs
Improved shared_code_in_if_blocks message and added test stderrs
[rust.git] / tests / ui / rc_buffer_redefined_string.rs
1 #![warn(clippy::rc_buffer)]
2
3 use std::rc::Rc;
4
5 struct String;
6
7 struct S {
8     // does not trigger lint
9     good1: Rc<String>,
10 }
11
12 fn main() {}