mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
13 lines
142 B
Rust
13 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() {}
|