mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
12 lines
142 B
Rust
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() {}
|