Files
rust/tests/ui/traits/copy-trait-implicit-copy.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
304 B
Rust
Raw Normal View History

2025-06-03 17:47:38 +05:00
//! Tests that type parameters with the `Copy` are implicitly copyable.
//@ run-pass
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
#![allow(dead_code)]
2025-06-03 17:47:38 +05:00
fn can_copy_copy<T: Copy>(v: T) {
let _a = v;
let _b = v;
}
pub fn main() {}