mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 23:59:07 +00:00
20 lines
333 B
Rust
20 lines
333 B
Rust
// Regression test for #107481
|
|
|
|
//@ check-pass
|
|
|
|
use std::{borrow::Cow, collections::HashMap};
|
|
|
|
#[derive(Clone)]
|
|
struct Foo<'a>(Cow<'a, [Self]>);
|
|
|
|
#[derive(Clone)]
|
|
struct Bar<'a>(Cow<'a, HashMap<String, Self>>);
|
|
|
|
#[derive(Clone)]
|
|
struct Baz<'a>(Cow<'a, Vec<Self>>);
|
|
|
|
#[derive(Clone)]
|
|
struct Qux<'a>(Cow<'a, Box<Self>>);
|
|
|
|
fn main() {}
|