]> git.lizzy.rs Git - rust.git/blob - src/test/ui/can-copy-pod.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() {}