]> git.lizzy.rs Git - rust.git/blob - src/test/ui/can-copy-pod.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / can-copy-pod.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 /* Any copyright is dedicated to the Public Domain.
5  * http://creativecommons.org/publicdomain/zero/1.0/ */
6
7 // Tests that type parameters with the `Copy` are implicitly copyable.
8
9 #![allow(dead_code)]
10
11 fn can_copy_copy<T:Copy>(v: T) {
12     let _a = v;
13     let _b = v;
14 }
15
16 pub fn main() {}