]> git.lizzy.rs Git - rust.git/blob - tests/ui/can-copy-pod.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / 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() {}