]> git.lizzy.rs Git - rust.git/blob - src/test/ui/can-copy-pod.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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() {}